INFURA / infura

Official Public Repository for INFURA
https://infura.io
381 stars 62 forks source link

web3.eth.sendSignedTransaction on Infura #190

Open Aleione opened 4 years ago

Aleione commented 4 years ago

Hi,

i have a problem with web3.eth.sendSignedTransaction in my web3 script. Until about a week ago all ok, but now when i call: await web3.eth.sendSignedTransaction('0x' + serializedTx) .on('receipt', function(receipt){ console.log('submitted tx:' + receipt.transactionHash + ' triggered by event of tx: ' + transactionHash + ' in block number: ' + blockNumber + ' with logId: ' + logId + "BLOCKNUMBER: " + receipt.blockNumber) TxreceiveHash = receipt.transactionHash controlConfirmation = true }) .on('confirmation', (confirmationNumber, receipt) => { console.log('confirmation') }) .on('error', console.error)

tx is correctly submitted and mined on ropsten blockchain but promise never resolved. On ganache all ok. I have tried to change web3 version 1.0.0.34 beta, then 1.0.0.37 beta and now 1.2.1 as suggested in other posts but promise never resolved.

How can i fix this problem, please?