Skip to content

Commit 3aed931

Browse files
committed
Use EIP1559 for custom gas price
1 parent b0a2705 commit 3aed931

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/request-viewer/send-transaction.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,11 @@ export function SendTransaction({
198198
return;
199199
}
200200

201+
const gasPrice = parseUnits(value, 'gwei');
202+
201203
setFeeData({
202-
gasPrice: parseUnits(value, 'gwei'),
204+
maxFeePerGas: gasPrice,
205+
maxPriorityFeePerGas: gasPrice,
203206
});
204207
})
205208
}

0 commit comments

Comments
 (0)