Closed timgestson closed 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:
bamboo --abi < 01b_erc20better.bbo
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}
{"type": "constructor", "inputs":[{"name": "totalSupply", "type": "uint256"}], "name": "PreToken", "outputs":[], "payable": true}
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.
If mappings are arguments in the constructor, the abi will omit them reproducing:
bamboo --abi < 01b_erc20better.bbo
which has these arguments:will produce the inputs:
{"type": "constructor", "inputs":[{"name": "totalSupply", "type": "uint256"}], "name": "PreToken", "outputs":[], "payable": true}