Closed wernerliechti closed 2 years ago
Hi,
The Contract.fromFile("ContractJson/ABI.json")
reads in a compiled contract json file.
This files includes many fields like "abi", "bytecode", etc.
If you only have ABI information of the smart contract, you can have your file structured like this:
{
"abi": [.... the content you posted as abi]
}
Simply add a "abi" key and follow with the abi content.
You can refer to what I did for the VTHO smart contract: https://github.com/laalaguer/thor-requests.py/blob/main/tests/VTHO.json
So happy that it worked! Thank you so much!
I wanted to call a Smart Contract function but got this error:
The ABI was generated with truffle, unsure how to solve the error. ABI looks like this:
This is how I call the function:
Not quite sure how to solve the error. Thanks for any help in advance. :D