Description
2 parts to this one
Consider a situation in which I have an Ethereum contract called TwoGather.sol, and discovery compile successfully compiles it into the build folder as build/smart_contracts/TwoGather.json
First question: It seems that I cannot just pass this file to the eth_contract macro, but that I first need to extract only the array that can be found at the abi property, is that correct? I was getting errors passing the file from the build/smart_contracts folder and that seemed to get me further.
Based on the the voting example this seems correct.
97 | #[eth_contract("TwoGather_abi_only.json")]
= help: message: calledResult::unwrap()
on anErr
value: TokenParseError { error: "unexpected token" }
We don't see the rest of the contract but the eth_contract declaration seems correct, and the json looks valid in the post.
Will refer to the voting example while I try reproduce the error, perhaps Brendan can share a broken project.