Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

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

Closed
gluneau opened this issue Dec 2, 2017 · 1 comment

Comments

@gluneau
Copy link

gluneau commented Dec 2, 2017

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

@heifner
Copy link
Contributor

heifner commented Jun 8, 2018

Improved error messages were addd to cleos.

@heifner heifner closed this as completed Jun 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants