You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i want to deploy my contract, code is very sample:
letWeb3=require('web3');// version v1.0.0-beta46constweb3=newWeb3("ws://localhost:8545");constmyContract=newweb3.eth.Contract([insertabi]);myContract.deploy({arguments: [],data: "0x12345..."})// ...
Steps to reproduce the behavior
run command
node deploy.js
Error Logs
(node:30192) UnhandledPromiseRejectionWarning: TypeError: this.methods.contractConstructor is not a function
at AbstractContract.deploy (/Users/wansy/Desktop/ethereum-test/node_modules/web3-eth-contract/dist/web3-eth-contract.cjs.js:1036:27)
...
debugger
i use node --inspect to debugger, then print this.method's function:
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: