Skip to content

Add object style for calling iost.transfer#3

Open
nujabes403 wants to merge 1 commit into
iost-official:masterfrom
nujabes403:add-object-style-calling-transfer
Open

Add object style for calling iost.transfer#3
nujabes403 wants to merge 1 commit into
iost-official:masterfrom
nujabes403:add-object-style-calling-transfer

Conversation

@nujabes403

Copy link
Copy Markdown
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.

1 participant