abieos
abieos copied to clipboard
inconsistency in handling redefined types
On mainnet, mydex1engine has ABI that redefines some standard types:
},{
"name": "extended_symbol",
"base": "",
"fields": [{
"name": "sym",
"type": "symbol"
},{
"name": "contract",
"type": "account_name"
}
]
},{
"name": "extended_asset",
"base": "",
"fields": [{
"name": "quantity",
"type": "asset"
},{
"name": "contract",
"type": "account_name"
}
]
}
when parsing the binary output from state history plugin, abieos throws an exception:
error: abi redefines type "extended_asset"
So, it needs to be more consistent: either nodeos should reject uploading of such an ABI, or abieos should tolerate and work around this error. Probably both should be done, as this wrong ABI is already carved in history.
One more issue in mainnet: fastwinitemf is using account_name as a typ0e, and abieos complains about invalid type:
},{
"name": "transfer",
"base": "",
"fields": [{
"name": "from",
"type": "account_name"
},{
"name": "to",
"type": "account_name"
},{
"name": "quantity",
"type": "asset"
},{
"name": "memo",
"type": "string"
}
]
},{