Skip to content

Commit

Permalink
feat: max amount allowance approval (#489)
Browse files Browse the repository at this point in the history
  • Loading branch information
codingki authored Nov 20, 2024
1 parent 1001c0b commit 23edd2f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/flat-geese-trade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@skip-go/client': patch
---

max amount allowance approval
4 changes: 2 additions & 2 deletions packages/client/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import { TxRaw } from 'cosmjs-types/cosmos/tx/v1beta1/tx';
import { MsgExecuteContract } from 'cosmjs-types/cosmwasm/wasm/v1/tx';
import { MsgExecute } from './codegen/initia/move/v1/tx';

import { publicActions, WalletClient } from 'viem';
import { maxUint256, publicActions, WalletClient } from 'viem';

import { chains, findFirstWorkingEndpoint } from './chains';
import {
Expand Down Expand Up @@ -558,7 +558,7 @@ export class SkipClient {
functionName: 'approve',
args: [
requiredApproval.spender as `0x${string}`,
BigInt(requiredApproval.amount),
maxUint256,
],
chain: signer.chain,
});
Expand Down

0 comments on commit 23edd2f

Please sign in to comment.