File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ export const cancelTransactionAndUpdate = async ({
87
87
data : "0x" ,
88
88
value : "0x00" ,
89
89
nonce : txData . nonce ! ,
90
+ ...gasOverrides ,
90
91
maxFeePerGas : BigNumber . from ( gasOverrides . maxFeePerGas ) . mul ( 2 ) ,
91
92
maxPriorityFeePerGas : BigNumber . from (
92
93
gasOverrides . maxPriorityFeePerGas ,
Original file line number Diff line number Diff line change 1
1
import { getDefaultGasOverrides } from "@thirdweb-dev/sdk" ;
2
2
import { ethers } from "ethers" ;
3
- import { BigNumber } from "ethers/lib/ethers" ;
4
3
import { prisma } from "../../db/client" ;
5
4
import { getConfiguration } from "../../db/configuration/getConfiguration" ;
6
5
import { getTxToRetry } from "../../db/transactions/getTxToRetry" ;
@@ -45,10 +44,6 @@ export const retryTx = async () => {
45
44
46
45
// TODO: We should still retry anyway
47
46
const gasOverrides = await getDefaultGasOverrides ( sdk . getProvider ( ) ) ;
48
- if ( gasOverrides . maxFeePerGas ?. lte ( BigNumber . from ( tx . maxFeePerGas ) ) ) {
49
- // If the current blockchain gas fees are lower than the transaction, wait
50
- return ;
51
- }
52
47
53
48
if ( tx . retryGasValues ) {
54
49
// If a retry has been triggered manually
@@ -77,6 +72,9 @@ export const retryTx = async () => {
77
72
nonce : tx . nonce ! ,
78
73
value : tx . value ! ,
79
74
...gasOverrides ,
75
+ gasPrice : gasOverrides . gasPrice ?. mul ( 2 ) ,
76
+ maxFeePerGas : gasOverrides . maxFeePerGas ?. mul ( 2 ) ,
77
+ maxPriorityFeePerGas : gasOverrides . maxPriorityFeePerGas ?. mul ( 2 ) ,
80
78
} ) ;
81
79
} catch ( err : any ) {
82
80
logger . worker . warn (
You can’t perform that action at this time.
0 commit comments