-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
this.methods.contractConstructor is not a function #2431
Labels
Bug
Addressing a bug
Comments
Thanks for creating this issue! Could you please add your contract code or the related ABI? |
Just checked the code and saw the issue you have. This got fixed in this PR: #2432 |
ABI: [
{
"constant": false,
"inputs": [
{
"name": "a",
"type": "uint256"
},
{
"name": "b",
"type": "uint256"
}
],
"name": "add",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "getCount",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
}
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i want to deploy my contract, code is very sample:
Steps to reproduce the behavior
Error Logs
debugger
i use
node --inspect
to debugger, then print this.method's function:iModel:AbiModel {abi: Object} contract:AbstractContract {providersModuleFactory: ProvidersModuleFactory, providerDetector: ProviderDetector, providerResolver: ProviderResolver, …} methodEncoder:MethodEncoder {abiCoder: AbiCoder} methodFactory:MethodFactory {accounts: Proxy, utils: Object, formatters: Object, …} methodOptionsMapper:MethodOptionsMapper {utils: Object, formatters: Object} methodOptionsValidator:MethodOptionsValidator {utils: Object} PromiEvent:function PromiEvent() { … }
there have no contractConstructor function
Versions
The text was updated successfully, but these errors were encountered: