I tried to call the deployed contract method. However, I got the error below
$ npx oz send-tx
? Pick a network ropsten
? Pick an instance SPAY at 0x9c90EF4D5906689706b116709F06521d3beAEbc2
No AST nodes of type ContractDefinition with id 1027 found.
The contract deployed on Ropsten:
Environment
Truffle
$ truffle version
Truffle v5.2.4 (core: 5.2.4)
Solidity - 0.6.2 (solc-js)
Node v14.16.0
Web3.js v1.2.9
$ npx --version
6.14.11
Details
The following is my truffle config:
ropsten: {
provider: () => new HDWalletProvider(mnemonic, https://ropsten.infura.io/v3/xxxxxxxxxxxxxxxx
),
network_id: 3, // Ropsten’s id
gas: 5500000, // Ropsten has a lower block limit than mainnet
confirmations: 2, // # of confs to wait between deployments. (default: 0)
timeoutBlocks: 40000000, // # of blocks before a deployment times out (minimum/default: 50)
skipDryRun: true // Skip dry run before migrations? (default: false for public nets )
},
Code to reproduce