sendSignedTransacrtionの待ち時間の調整

1.sendSignedTransacrtionの待ち時間の調整
Ropstenのtest networkでは、Ganacheのlocal networkと異なりsendSignedTransacrtionので待ち時間が長い

2.対策
・ transactionConfirmationBlocksの設定変更
・あえて1ではなく2 にする

const web3 = eth.getWeb3();

web3.eth.transactionConfirmationBlocks = 2;

3.参考
https://web3js.readthedocs.io/en/v1.2.2/web3-eth.html?highlight=transactionConfirmationBlocks#transactionconfirmationblocks

The current value of transactionConfirmationBlocks (default: 24)