Skip to content

Commit 6672549

Browse files
[SDK] feat: Add fixed gas limit for Saga Mainnet (#6500)
1 parent 639b542 commit 6672549

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/thirdweb/src/transaction/actions/estimate-gas.ts

+4
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ export async function estimateGas(
7373
// biome-ignore lint/style/noNonNullAssertion: the `has` above ensures that this will always be set
7474
return cache.get(txWithFrom)!;
7575
}
76+
// Saga Mainnet has a fixed gas limit for all transactions
77+
if (options.transaction.chain.id === 5464) {
78+
return 20000000n;
79+
}
7680
const { account } = options;
7781
const promise = (async () => {
7882
const predefinedGas = await resolvePromisedValue(options.transaction.gas);

0 commit comments

Comments
 (0)