FISCO-BCOS / FISCO-BCOS/console

console v3.0调用预编译合约bug

Open
#601 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

无法自动在`contracts/.compiled/group0`文件夹下生成对应的abi和bin文件(这个可以在v2.8中实现),因此会报错`abi is empty...`的错误,暂时修复方式可以通过deploy命令获得bin和abi文件,然后手动在`group0`文件夹下创建预编译合约的地址目录,例如预编译合约地址为`0000000000000000000000000000000000005001`,则需要在console文件夹下创建的目录结构为
```
contracts/.compiled/group0/0x0000000000000000000000000000000000005001/
```
在这个目录下放进bin和abi文件即可成功调用预编译合约。

另一个问题是无法通过`0x5001`这样简短的地址调用,必须要写全,但是这个特性在v2.8是支持的,希望在v3.0中也可以支持

Contributor guide

Open the contributing guide

Research direction

Start with the console's handling of the deploy command and the contracts/.compiled/group0 directory described in the issue. Reproduce a precompiled-contract call and a call using the short 0x5001 address. Done means ABI and BIN files are generated automatically and both full and shortened addresses work as they did in v2.8.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.