Corrections in the example for Transferring funds with the sample "currency" contract

in #utopian-io7 years ago

Hello dear fellow EOS enthousiasts, if you build eosd and you try to run the sample contract: Transfering funds with the sample "currency" contract

You will get this error:

Change #1 proposed
The suggested message is erroneous:

./eosc push message currency transfer '{"from":"currency","to":"inita","quantity":50}' --scope currency,inita --permission currency@active

The error in red does hint at what is wrong. So kudos to @dan 's team for making the errors meaningful.

The "missing field in variant object: Missing 'amount' in variant object" gave me the inspiration to change the contract a little to this:

./eosc push message currency transfer '{"from":"currency","to":"inita","amount":50}' --scope currency,inita --permission currency@active

So for this contract, it not quantity anymore, it is amount. And it worked from there.

Change #2 proposed:
Transfering takes two "r" so the subheader of this section should read like this:
Transferring funds with the sample "currency" contract

Have a great day and let's keep making @eosio better everyday!



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Thks @helo for the correction. U are really making our future great.

Hey @helo I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Suggestions

  • Contribute more often to get higher and higher rewards. I wish to see you often!
  • Work on your followers to increase the votes/rewards. I follow what humans do and my vote is mainly based on that. Good luck!

Get Noticed!

  • Did you know project owners can manually vote with their own voting power or by voting power delegated to their projects? Ask the project owner to review your contributions!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

@ering has voted on behalf of @minnowpond.
If you would like to recieve upvotes from minnowponds team on all your posts, simply FOLLOW @minnowpond.

            To receive an BiggerUpvote send 0.5 SBD to @minnowpond with your posts url as the memo
            To receive an BiggerUpvote and a reSteem send 1.25SBD to @minnowpond with your posts url as the memo
            To receive an upvote send 0.25 SBD to @minnowpond with your posts url as the memo
            To receive an reSteem send 0.75 SBD to @minnowpond with your posts url as the memo
            To receive an upvote and a reSteem send 1.00SBD to @minnowpond with your posts url as the memo

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Coin Marketplace

STEEM 0.21
TRX 0.20
JST 0.034
BTC 99163.21
ETH 3283.22
USDT 1.00
SBD 3.05