Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/wild-games-vanish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"thirdweb": patch
---

Handle 0 value for maxPriorityFeePerGas in 712 transactions
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,11 @@
resolvePromisedValue(transaction.eip712),
]);
let gasPerPubdata = eip712?.gasPerPubdata;
if (!gas || !maxFeePerGas || !maxPriorityFeePerGas) {
if (
gas === undefined ||
maxFeePerGas === undefined ||
maxPriorityFeePerGas === undefined
) {

Check warning on line 180 in packages/thirdweb/src/transaction/actions/zksync/send-eip712-transaction.ts

View check run for this annotation

Codecov / codecov/patch

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

Added lines #L176 - L180 were not covered by tests
const rpc = getRpcClient(transaction);
const params = await formatTransaction({ transaction, from });
const result = (await rpc({
Expand Down
Loading