Skip to content

Commit 1e9a6c7

Browse files
fix: Handle zero maxPriorityFeePerGas in 712 transactions (#5531)
1 parent 8d47654 commit 1e9a6c7

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.changeset/wild-games-vanish.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
Handle 0 value for maxPriorityFeePerGas in 712 transactions

packages/thirdweb/src/transaction/actions/zksync/send-eip712-transaction.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,11 @@ export async function getZkGasFees(args: {
173173
resolvePromisedValue(transaction.eip712),
174174
]);
175175
let gasPerPubdata = eip712?.gasPerPubdata;
176-
if (!gas || !maxFeePerGas || !maxPriorityFeePerGas) {
176+
if (
177+
gas === undefined ||
178+
maxFeePerGas === undefined ||
179+
maxPriorityFeePerGas === undefined
180+
) {
177181
const rpc = getRpcClient(transaction);
178182
const params = await formatTransaction({ transaction, from });
179183
const result = (await rpc({

0 commit comments

Comments
 (0)