pirapira / bamboo

Bamboo see https://github.com/cornellblockchain/bamboo
Apache License 2.0
324 stars 39 forks source link

Arguments that are mappings are omitted in the abi #247

Closed timgestson closed 6 years ago

timgestson commented 6 years ago

If mappings are arguments in the constructor, the abi will omit them reproducing: bamboo --abi < 01b_erc20better.bbo which has these arguments:

contract PreToken
(uint256 totalSupply
,address => uint256 balances
,address => address => uint256 allowances
)

will produce the inputs: {"type": "constructor", "inputs":[{"name": "totalSupply", "type": "uint256"}], "name": "PreToken", "outputs":[], "payable": true}

timgestson commented 6 years ago

Seeing now that this is desired behavior https://github.com/pirapira/bamboo/blob/master/doc/tutorial.md#preparing-the-initial-arguments . Though i fear it is not very intuitive. closing.