Closed megaturbo closed 5 years ago
Interesting. Can I ask what's generating your ABI file? Do you have any idea what this gas value is meant to be used for? Is it an estimate? If you note the specification it has no mention of gas. https://solidity.readthedocs.io/en/v0.5.3/abi-spec.html#json
Oh you're right, and now that you say that I realized it's only my vyper contracts ABIs that shows this gas parameter.
All my ABI files are all generated by truffle
, hence it should use the vyper compiler which apparently does a gas estimate
Merged into v4.0.4.
When I generate my contract types with
web3x-codegen
I end up withMyContract.ts
andMyContractAbi.ts
as intended.However, in some of my
MyContractAbi.ts
, theContractAbi
constructor should take an array ofContractEntryDefinition
. However some of my entries are set with agas
parameter, which does not fit theContractEntryDefinition
interface. See below:Hence I got some compiler errors.
What does it depend on to set this gas parameter ? Should we add it to the
ContractEntryDefinition
interface as an optional parameter ?