Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use "asset_issuer" and "asset_code" for payment and trust #5

Open
MikeFair opened this issue Feb 28, 2018 · 1 comment
Open

Use "asset_issuer" and "asset_code" for payment and trust #5

MikeFair opened this issue Feb 28, 2018 · 1 comment

Comments

@MikeFair
Copy link

The parameter names across different operations for custom assets is somewhat non-standard.

In send-payments they are called "token" and "issuer"
In change-trust they are called "code" and "issuer_address"
The allow-trust, path-payment, and manage-offer operations aren't exposed yet

tolitius added a commit that referenced this issue Apr 16, 2018
to "change-trust" & "send-payment" commands
@tolitius
Copy link
Owner

tolitius commented Apr 16, 2018

both send-payment and change-trust now accept "asset_issuer" and "asset_code":

$ bb change-trust -s '{"source_account": "'$(cat foo)'",
                       "asset_code": "TIL",
                       "asset_issuer": "test_issuer*dotkam.com"}'
$ bb send-payment -s '{"from": "'$(cat tmp/distributor)'",
                       "to": "'$(cat foo.pub)'",
                       "amount": "42",
                       "asset_code": "TIL",
                       "asset_issuer": "test_issuer*dotkam.com"}'

the other options are still supported for backward compatibility. will phase them out in later releases

tolitius added a commit that referenced this issue Apr 16, 2018
to "change-trust" & "send-payment" commands
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants