新手问答 上传合约成功,但是发代币的时候报错

apple · March 20, 2018 · Last by apple replied at March 20, 2018 · 8236 hits

./eosioc push action currency issue '{"to":"currency","quantity":"1000.0000 CUR"}' --permission currency@active 报错如下: 1377783ms thread-0 main.cpp:935 operator() ] Converting argument to binary... 1377858ms thread-0 main.cpp:1008 main ] Failed with error: Assert Exception (10) !"missing field in variant object": Missing 'memo' in variant object

Request Path: localhost:8888/v1/chain/abi_json_to_bin, Request Post Data: {"code":"currency","action":"issue","args":{"to":"currency","quantity":"1000.0000 CUR"}} 查看账户余额 ./eosioc get table currency currency account { "rows": [], "more": false }

共收到 10 条回复

提示很明确: missing field in variant object": Missing 'memo' in variant object

[quote="@lory"] 提示很明确: missing field in variant object": Missing 'memo' in variant object [/quote]

但是我不知道怎么做

[quote="@apple"] [quote="@lory"] 提示很明确: missing field in variant object": Missing 'memo' in variant object [/quote]

但是我不知道怎么做 [/quote]

./eosioc push action currency issue '{"to":"currency","quantity":"1000.0000 CUR", "memo": ""}' --permission currency@active

如果可以的话,也请回复一下,或者点个赞。谢谢!!

[quote="@lory"] [quote="@apple"] [quote="@lory"] 提示很明确: missing field in variant object": Missing 'memo' in variant object [/quote]

但是我不知道怎么做 [/quote]

./eosioc push action currency issue '{"to":"currency","quantity":"1000.0000 CUR", "memo": ""}' --permission currency@active

[/quote] ./eosioc push action currency issue '{"to":"currency","quantity":"1000.0000 CUR","memo":""}' --permission currency@active 392769ms thread-0 main.cpp:935 operator() ] Converting argument to binary... 392995ms thread-0 main.cpp:1008 main ] Failed with error: Assert Exception (10) condition: assertion failed: unable to find key

Request Path: localhost:8888/v1/chain/push_transaction, Request Post Data: {"signatures":["EOSK2WbMKFFWiPpM1StJZoo3wNcwDH83Y8ha7Mx3nz19Ssv1uKKBWKYzK5kq2X4AoDYZnaA8Jc1ixK145MbRSEfL2wn7a4u98"],"compression":"none","data":"5ef3dc5800000000000000000000000000010000001e4d75af460000000000a53176010000001e4d75af4600000000a8ed3232190000001e4d75af468096980000000000044355520000000000"}

[quote="@lory"] 如果可以的话,也请回复一下,或者点个赞。谢谢!! [/quote]

谢谢! 我在想为啥我的两个账户都没有余额

[quote="@apple"] [quote="@lory"] [quote="@apple"] [quote="@lory"] 提示很明确: missing field in variant object": Missing 'memo' in variant object [/quote]

但是我不知道怎么做 [/quote]

./eosioc push action currency issue '{"to":"currency","quantity":"1000.0000 CUR", "memo": ""}' --permission currency@active

[/quote] ./eosioc push action currency issue '{"to":"currency","quantity":"1000.0000 CUR","memo":""}' --permission currency@active 392769ms thread-0 main.cpp:935 operator() ] Converting argument to binary... 392995ms thread-0 main.cpp:1008 main ] Failed with error: Assert Exception (10) condition: assertion failed: unable to find key

Request Path: localhost:8888/v1/chain/push_transaction, Request Post Data: {"signatures":["EOSK2WbMKFFWiPpM1StJZoo3wNcwDH83Y8ha7Mx3nz19Ssv1uKKBWKYzK5kq2X4AoDYZnaA8Jc1ixK145MbRSEfL2wn7a4u98"],"compression":"none","data":"5ef3dc5800000000000000000000000000010000001e4d75af460000000000a53176010000001e4d75af4600000000a8ed3232190000001e4d75af468096980000000000044355520000000000"} [/quote]

这个可能是你没有权限, unable to find key。

[quote="@lory"] [quote="@apple"] [quote="@lory"] [quote="@apple"] [quote="@lory"] 提示很明确: missing field in variant object": Missing 'memo' in variant object [/quote]

但是我不知道怎么做 [/quote]

./eosioc push action currency issue '{"to":"currency","quantity":"1000.0000 CUR", "memo": ""}' --permission currency@active

[/quote] ./eosioc push action currency issue '{"to":"currency","quantity":"1000.0000 CUR","memo":""}' --permission currency@active 392769ms thread-0 main.cpp:935 operator() ] Converting argument to binary... 392995ms thread-0 main.cpp:1008 main ] Failed with error: Assert Exception (10) condition: assertion failed: unable to find key

Request Path: localhost:8888/v1/chain/push_transaction, Request Post Data: {"signatures":["EOSK2WbMKFFWiPpM1StJZoo3wNcwDH83Y8ha7Mx3nz19Ssv1uKKBWKYzK5kq2X4AoDYZnaA8Jc1ixK145MbRSEfL2wn7a4u98"],"compression":"none","data":"5ef3dc5800000000000000000000000000010000001e4d75af460000000000a53176010000001e4d75af4600000000a8ed3232190000001e4d75af468096980000000000044355520000000000"} [/quote]

这个可能是你没有权限, unable to find key。 [/quote]

实在是不知道怎么解决

./eosioc get account currency { "account_name": "currency", "permissions": [{ "perm_name": "active", "parent": "owner", "required_auth": { "threshold": 1, "keys": [{ "key": "EOSxxxxxxxxwfP", "weight": 1 } ], "accounts": [] } },{ "perm_name": "owner", "parent": "", "required_auth": { "threshold": 1, "keys": [{ "key": "EOSxxxx", "weight": 1 } ], "accounts": [] } } ] }

[quote="@apple"] ./eosioc get account currency { "account_name": "currency", "permissions": [{ "perm_name": "active", "parent": "owner", "required_auth": { "threshold": 1, "keys": [{ "key": "EOSxxx", "weight": 1 } ], "accounts": [] } },{ "perm_name": "owner", "parent": "", "required_auth": { "threshold": 1, "keys": [{ "key": "EOSxxx", "weight": 1 } ], "accounts": [] } } ] } [/quote]

需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up