tx.wait()으로 트랜젝션 마이닝 기다려주기
예를들어 아래와 같이 토큰을 스왑하는 상황을 가정해보자 const result = await tokenContract.approve( routerAddress, utils.parseEther("100"), { maxPriorityFeePerGas: gasPrice, maxFeePerGas: gasPrice, } ); // 스왑 const deadline = Math.floor(Date.now() / 1000) + 60 * 20; const swapValue = await routerContract.swapExactTokensForETH( utils.parseEther("1"), 0, ["0x123...","0x123...","0x123..."], to, deadline, { maxPriorityFeePe..