发起类型为`TaxUsage`的提案,令提取比例(percent)超过百分之百,可以成功发起提案。
Closed this issue · 1 comments
WZJ-Study commented
./qoscli tx submit-proposal --proposal-type TaxUsage --title 'test2' --description 'null' --proposer alice --deposit 120000 --dest-address node --percent 2 --max-gas 200000 --indent
上述命令可以成功创建提案,提案内容如下:
$ ./qoscli query proposals --indent
[
{
"proposal_content": {
"type": "gov/TaxUsageProposal",
"value": {
"TextProposal": {
"title": "test2",
"description": "null",
"deposit": "120000"
},
"dest_address": "address1qgwgmpsrd6anj3qjvjsqztj3xt9v24c4mh77x3",
"percent": "2.000000000000000000"
}
},
"proposal_id": "1",
"proposal_status": "Voting",
"final_tally_result": {
"yes": "0",
"abstain": "0",
"no": "0",
"no_with_veto": "0"
},
"submit_time": "2019-08-21T02:54:07.185939302Z",
"deposit_end_time": "2019-08-21T02:59:07.185939302Z",
"total_deposit": "120000",
"voting_start_time": "2019-08-21T02:54:07.185939302Z",
"voting_start_height": "12",
"voting_end_time": "2019-08-21T02:59:07.185939302Z"
}
]
可以看到提案中提取比例为百分之两百,这里应该在创建提案前检查提取比例是否处于正常范围(0 - 1之间)。
TokenxyWZY commented
fix #330