FISCO-BCOS / FISCO-BCOS/console

控制台解析参数失败问题

Open
#255 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Shell
Stars
96
Forks
62
PR merge metrics
No merged PRs in 30d

Description

在使用中发现当合约的入参有字符串数组和字符串一起作为入参时候,如果字符串有空格,参数解析会失败如下图:
![image](https://user-images.githubusercontent.com/27805165/80090013-705b3880-8591-11ea-857b-2fae7a217fed.png)

而如果是整形数组和字符串作为入参的时候,就没这个问题,如图:
![image](https://user-images.githubusercontent.com/27805165/80090258-ce881b80-8591-11ea-8a29-7f895a247f83.png)

控制台版本1.0.9,希望能及时修复

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure in the console using a contract call with a string array and a string containing spaces, then compare it with the integer-array case described in the issue. Trace the console's argument-parsing entry point and add a regression test; done means both argument combinations are parsed and passed to the contract correctly.

Written by the indexing model from the issue text.

Assessment

Domain
blockchain, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.