Skip to content

Commit 401e361

Browse files
committed
updates to help with better readability
1 parent 9891b06 commit 401e361

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/db/transactions/queueTx.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ interface QueueTxParams {
1616
simulateTx?: boolean;
1717
idempotencyKey?: string;
1818
txOverrides?: {
19-
gasLimit?: string;
19+
gas?: string;
2020
maxFeePerGas?: string;
2121
maxPriorityFeePerGas?: string;
2222
};

src/db/transactions/queueTxRaw.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ type QueueTxRawParams = Omit<
2525
pgtx?: PrismaTransaction;
2626
simulateTx?: boolean;
2727
idempotencyKey?: string;
28+
gas?: string;
2829
};
2930

3031
export const queueTxRaw = async ({
@@ -60,6 +61,8 @@ export const queueTxRaw = async ({
6061
target: tx.target?.toLowerCase(),
6162
signerAddress: tx.signerAddress?.toLowerCase(),
6263
accountAddress: tx.accountAddress?.toLowerCase(),
64+
gasLimit: tx.gas,
65+
gas: undefined,
6366
};
6467

6568
let txRow: Transactions;

src/server/routes/contract/write/write.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,6 @@ export async function writeToContract(fastify: FastifyInstance) {
9292
maxPriorityFeePerGas: txOverrides?.maxPriorityFeePerGas,
9393
});
9494

95-
const gasLimit = txOverrides?.gas;
96-
delete txOverrides?.gas;
97-
9895
const queueId = await queueTx({
9996
tx,
10097
chainId,
@@ -103,7 +100,6 @@ export async function writeToContract(fastify: FastifyInstance) {
103100
idempotencyKey,
104101
txOverrides: {
105102
...txOverrides,
106-
gasLimit,
107103
},
108104
});
109105

0 commit comments

Comments
 (0)