We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d47654 commit 1e9a6c7Copy full SHA for 1e9a6c7
.changeset/wild-games-vanish.md
@@ -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
@@ -173,7 +173,11 @@ export async function getZkGasFees(args: {
173
resolvePromisedValue(transaction.eip712),
174
]);
175
let gasPerPubdata = eip712?.gasPerPubdata;
176
- if (!gas || !maxFeePerGas || !maxPriorityFeePerGas) {
+ if (
177
+ gas === undefined ||
178
+ maxFeePerGas === undefined ||
179
+ maxPriorityFeePerGas === undefined
180
+ ) {
181
const rpc = getRpcClient(transaction);
182
const params = await formatTransaction({ transaction, from });
183
const result = (await rpc({
0 commit comments