Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Sign in
issue
issue
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 23
    • Issues 23
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

新注册的用户请输入邮箱并保存,随后登录邮箱激活账号。后续可直接使用邮箱登录!

  • chainmaker
  • issueissue
  • Issues
  • #316

Closed
Open
Opened Aug 15, 2022 by teletime@teletime

2.2.1版本执行balance-evm-demo例子报错

./cmc client contract user create --contract-name=balance001 --runtime-type=EVM --byte-code-path=./testdata/balance-evm-demo/ledger_balance.bin --version=1.0 --sdk-conf-path=./testdata/sdk_config.yml --admin-key-file-paths=./testdata/crypto-config/wx-org1.chainmaker.org/user/admin1/admin1.tls.key,./testdata/crypto-config/wx-org2.chainmaker.org/user/admin1/admin1.tls.key,./testdata/crypto-config/wx-org3.chainmaker.org/user/admin1/admin1.tls.key,./testdata/crypto-config/wx-org4.chainmaker.org/user/admin1/admin1.tls.key --admin-crt-file-paths=./testdata/crypto-config/wx-org1.chainmaker.org/user/admin1/admin1.tls.crt,./testdata/crypto-config/wx-org2.chainmaker.org/user/admin1/admin1.tls.crt,./testdata/crypto-config/wx-org3.chainmaker.org/user/admin1/admin1.tls.crt,./testdata/crypto-config/wx-org4.chainmaker.org/user/admin1/admin1.tls.crt --sync-result=true --abi-file-path=./testdata/balance-evm-demo/ledger_balance.abi

部署合约显示成功

./cmc client contract user invoke --contract-name=balance001 --method=updateBalance --sdk-conf-path=./testdata/sdk_config.yml --params="{"uint256":"10000","address":"0xa166c92f4c8118905ad984919dc683a7bdb295c1"}" --sync-result=true --abi-file-path=./testdata/balance-evm-demo/ledger_balance.abi

调用合约方法显示 Error: json: cannot unmarshal object into Go value of type []util.Param

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: chainmaker/issue#316

Copyright © 2021 ChainMaker Org. All Rights Reserved. 长安链 版权所有。