iost.js icon indicating copy to clipboard operation
iost.js copied to clipboard

Add object style for calling iost.transfer

Open nujabes403 opened this issue 6 years ago • 0 comments

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 :)

nujabes403 avatar Dec 23 '18 08:12 nujabes403