File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
server/routes/contract/write Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ interface QueueTxParams {
16
16
simulateTx ?: boolean ;
17
17
idempotencyKey ?: string ;
18
18
txOverrides ?: {
19
- gasLimit ?: string ;
19
+ gas ?: string ;
20
20
maxFeePerGas ?: string ;
21
21
maxPriorityFeePerGas ?: string ;
22
22
} ;
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ type QueueTxRawParams = Omit<
25
25
pgtx ?: PrismaTransaction ;
26
26
simulateTx ?: boolean ;
27
27
idempotencyKey ?: string ;
28
+ gas ?: string ;
28
29
} ;
29
30
30
31
export const queueTxRaw = async ( {
@@ -60,6 +61,8 @@ export const queueTxRaw = async ({
60
61
target : tx . target ?. toLowerCase ( ) ,
61
62
signerAddress : tx . signerAddress ?. toLowerCase ( ) ,
62
63
accountAddress : tx . accountAddress ?. toLowerCase ( ) ,
64
+ gasLimit : tx . gas ,
65
+ gas : undefined ,
63
66
} ;
64
67
65
68
let txRow : Transactions ;
Original file line number Diff line number Diff line change @@ -92,9 +92,6 @@ export async function writeToContract(fastify: FastifyInstance) {
92
92
maxPriorityFeePerGas : txOverrides ?. maxPriorityFeePerGas ,
93
93
} ) ;
94
94
95
- const gasLimit = txOverrides ?. gas ;
96
- delete txOverrides ?. gas ;
97
-
98
95
const queueId = await queueTx ( {
99
96
tx,
100
97
chainId,
@@ -103,7 +100,6 @@ export async function writeToContract(fastify: FastifyInstance) {
103
100
idempotencyKey,
104
101
txOverrides : {
105
102
...txOverrides ,
106
- gasLimit,
107
103
} ,
108
104
} ) ;
109
105
You can’t perform that action at this time.
0 commit comments