Closed hoonsubin closed 4 years ago
have the same trouble
Looks like the ABI produced is missing the following properties: constant
, name
, outputs
.
This is probably where the problem lies: https://github.com/trufflesuite/drizzle/blob/develop/packages/store/types/IContract.d.ts#L1-L17
@hoonsubin @am-kra4un Can I ask which version Solidity compiler you guys are using? And also Truffle version if possible.
@adrianmcli Thank you for your reply.
Truffle v5.1.15 (core: 5.1.15) Solidity - 0.5.15 (solc-js) Node v13.8.0 Web3.js v1.2.1
I've made a temporary workaround by wrapping the contract json as any
@adrianmcli, you're right. This is the first item of the abi array, that caused a problem
{ "inputs": [], "payable": false, "stateMutability": "nonpayable", "type": "constructor" },
Truffle v5.1.11 (core: 5.1.11) Solidity v0.5.16 (solc-js) Node v10.16.0 Web3.js v1.2.1
We can probably change the types to make those optional for now. I'll happily merge a PR for that if you would like to provide one.
Error message:
I'm using Ubuntu 19.10 and drizzle version ^1.5.1. This issue happens with other smart contracts and other systems as well. The code where this error happens: https://github.com/hoonsubin/ethereum-lockdrop/blob/master/app/src/helpers/lockdrop/EthereumLockdrop.ts