这是我要运行的代码:
w3.eth.sendSignedTransaction( data ).once( 'transactionHash', (hash) => {
console.log('hash')
}).once('receipt', (receipt) => {
console.log('receipt');
}).on('confirmation', (confirmationNumber, receipt) => {
console.log('confirmation');
}).on('error', (err) => {
console.log(err);
}).then( (receipt) => {
console.log('finally got the receipt!');
})
我在执行时遇到的错误如下:
Error: Failed to check for transaction receipt:
{}
at Object._fireError (/..../node_modules/web3-utils/src/index.js:56:17)
at /..../node_modules/web3-core-method/src/index.js:260:23
at <anonymous>
任何解决此问题的帮助将不胜感激。