[go: nahoru, domu]

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

Add object style for calling iost.transfer #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nujabes403
Copy link
Contributor

Calling transfer like const tx = iost.transfer(tokenSym, accountList[0].getID(), "admin", "55.000000001"); sometimes verbose.

I added object-style calling method for it.

After this PR it can be possible to call like below:

iost.transfer({
  token: 'iost',
  from: '...',
  to: '...',
  amount: '...',
  memo: '...',
})

I think the above one is more friendly from ethereum-experienced developers.
How do you think about it? Please check it :)

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

Successfully merging this pull request may close these issues.

None yet

1 participant