diff --git a/.changeset/flat-geese-trade.md b/.changeset/flat-geese-trade.md new file mode 100644 index 00000000..60eccfb6 --- /dev/null +++ b/.changeset/flat-geese-trade.md @@ -0,0 +1,5 @@ +--- +'@skip-go/client': patch +--- + +max amount allowance approval diff --git a/packages/client/src/client.ts b/packages/client/src/client.ts index 04483d6b..2306a96f 100644 --- a/packages/client/src/client.ts +++ b/packages/client/src/client.ts @@ -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 { @@ -558,7 +558,7 @@ export class SkipClient { functionName: 'approve', args: [ requiredApproval.spender as `0x${string}`, - BigInt(requiredApproval.amount), + maxUint256, ], chain: signer.chain, });