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 8a132b4 commit 03cc4efCopy full SHA for 03cc4ef
1 file changed
src/contracts/erc-20.ts
@@ -1,4 +1,4 @@
1
-import { Address, maxUint256 } from 'viem'
+import { Address } from 'viem'
2
import {
3
readContract,
4
waitForTransactionReceipt,
@@ -43,7 +43,7 @@ export const checkAndSetErc20Allowance = async (
43
approvalAddress: Address,
44
amount: bigint,
45
userAddress: Address,
46
- allowanceAmount = maxUint256,
+ allowanceAmount = amount,
47
): Promise<void> => {
48
// Transactions with the native token don't need approval
49
if (tokenAddress.toLowerCase() === ROFL_PAYMASTER_NATIVE_TOKEN_ADDRESS) {
0 commit comments