FISCO-BCOS / FISCO-BCOS/console

部署合约传参报错:deploy contract failed for cannot encode in encodeMethodFromObject with appropriate interface ABI

Open
#620 1 comment 0 reactions 0 assignees View on GitHub
improve resolved
Dominant language
Shell
Stars
96
Forks
62
PR merge metrics
No merged PRs in 30d

Description

按照文档写的智能合约例子,构造器是:
![image](https://user-images.githubusercontent.com/44186273/168982392-277e20b0-9123-4492-9a97-abbffc91cc69.png)

`传参是:deploy EvidenceController 1 [0x62417832c3937d7eb8c89e9edbc2678530bbb8e5,0x9c8a87fd73df7b496f7807b7f24152d032973ee6]`
可是报错:
![image](https://user-images.githubusercontent.com/44186273/168981512-aae94d5a-b88b-4551-8844-36de73098bc8.png)
怎么调整都不通,请问是我传参格式的问题吗?

Contributor guide

Open the contributing guide

Research direction

Reproduce the deployment with `deploy EvidenceController 1 [0x62417832c3937d7eb8c89e9edbc2678530bbb8e5,0x9c8a87fd73df7b496f7807b7f24152d032973ee6]` and compare it with the constructor example in the linked documentation image. Trace how the console parses constructor arguments before `encodeMethodFromObject`; done means the documented deployment succeeds or the required argument format is clearly reported.

Written by the indexing model from the issue text.

Assessment

Tech stack
blockchain
Domain
blockchain, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.