-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
contractInstance.options.jsonInterface is undefined #2494
Comments
I've simplified the AbstractContract object to be consistent with the other module options and the jsonInterface property returns now an AbiModel with some additional methods to check for or to get a ABI item. contract.jsonInterface
contract.address
contract.defaultAccount
contract.defaultGas
contract.defaultGasPrice
... I could add the I apologize for this change and I'll give my best to write asap integration tests for having a proof that nothing breaks on a change. |
Ok, I think new solution is better than the one that was before. The only thing you need to fix is web3 documentation. I hope you'll close this issue after that 😄 |
Description
There's no JSON interface when I'm accessing the contract instance options.
Source code
Expected behavior
The above code should output all the contract options, including the JSON interface (ABI).
Actual behavior
The above code output is next:
As you can see, there's no
jsonInterface
in the logged options.Steps to reproduce the behavior
This behavior is reproducible with any created contract instance, just try to access the
contractInstance.options.jsonInterface
.Versions
1.0.0-beta.48
10.15.1
0.60.48
72.0.3626.121
(Official Build) (64-bit)6.2.2
The text was updated successfully, but these errors were encountered: