diff --git a/examples/wagemos-cosmoskit-nextjs/CHANGELOG.md b/examples/wagemos-cosmoskit-nextjs/CHANGELOG.md index 79c5b537..cdf63888 100644 --- a/examples/wagemos-cosmoskit-nextjs/CHANGELOG.md +++ b/examples/wagemos-cosmoskit-nextjs/CHANGELOG.md @@ -1,5 +1,13 @@ # wagemos-cosmoskit-nextjs +## 0.3.16 + +### Patch Changes + +- Updated dependencies [[`4084d7a`](https://github.com/AbstractSDK/abstract.js/commit/4084d7a33f751883c8fa83898007edefa4a5a2ff)]: + - @abstract-money/react@1.3.3 + - @abstract-money/provider-cosmoskit@5.0.3 + ## 0.3.15 ### Patch Changes diff --git a/examples/wagemos-cosmoskit-nextjs/package.json b/examples/wagemos-cosmoskit-nextjs/package.json index d9146133..5a3c8933 100644 --- a/examples/wagemos-cosmoskit-nextjs/package.json +++ b/examples/wagemos-cosmoskit-nextjs/package.json @@ -1,6 +1,6 @@ { "name": "wagemos-cosmoskit-nextjs", - "version": "0.3.15", + "version": "0.3.16", "private": true, "scripts": { "dev": "next dev", diff --git a/examples/wagemos-graz-nextjs/CHANGELOG.md b/examples/wagemos-graz-nextjs/CHANGELOG.md index ee7d73f7..fbc45202 100644 --- a/examples/wagemos-graz-nextjs/CHANGELOG.md +++ b/examples/wagemos-graz-nextjs/CHANGELOG.md @@ -1,5 +1,13 @@ # wagemos-graz-nextjs +## 0.3.16 + +### Patch Changes + +- Updated dependencies [[`4084d7a`](https://github.com/AbstractSDK/abstract.js/commit/4084d7a33f751883c8fa83898007edefa4a5a2ff)]: + - @abstract-money/react@1.3.3 + - @abstract-money/provider-graz@5.0.3 + ## 0.3.15 ### Patch Changes diff --git a/examples/wagemos-graz-nextjs/package.json b/examples/wagemos-graz-nextjs/package.json index 39df3c98..fd40a1a8 100644 --- a/examples/wagemos-graz-nextjs/package.json +++ b/examples/wagemos-graz-nextjs/package.json @@ -1,6 +1,6 @@ { "name": "wagemos-graz-nextjs", - "version": "0.3.15", + "version": "0.3.16", "private": true, "scripts": { "dev": "NODE_OPTIONS='--inspect' next dev", diff --git a/packages/provider-cosmoskit/CHANGELOG.md b/packages/provider-cosmoskit/CHANGELOG.md index 5ece3610..e772530a 100644 --- a/packages/provider-cosmoskit/CHANGELOG.md +++ b/packages/provider-cosmoskit/CHANGELOG.md @@ -1,5 +1,12 @@ # @abstract-money/provider-cosmoskit +## 5.0.3 + +### Patch Changes + +- Updated dependencies [[`4084d7a`](https://github.com/AbstractSDK/abstract.js/commit/4084d7a33f751883c8fa83898007edefa4a5a2ff)]: + - @abstract-money/react@1.3.3 + ## 5.0.2 ### Patch Changes diff --git a/packages/provider-cosmoskit/package.json b/packages/provider-cosmoskit/package.json index 1fddddbd..1c3a696e 100644 --- a/packages/provider-cosmoskit/package.json +++ b/packages/provider-cosmoskit/package.json @@ -1,6 +1,6 @@ { "name": "@abstract-money/provider-cosmoskit", - "version": "5.0.2", + "version": "5.0.3", "description": "Provider for CosmosKit", "homepage": "https://github.com/AbstractSDK/abstract.js#readme", "author": "dalechyn ", diff --git a/packages/provider-graz/CHANGELOG.md b/packages/provider-graz/CHANGELOG.md index fed8db50..53ce2028 100644 --- a/packages/provider-graz/CHANGELOG.md +++ b/packages/provider-graz/CHANGELOG.md @@ -1,5 +1,12 @@ # @abstract-money/provider-graz +## 5.0.3 + +### Patch Changes + +- Updated dependencies [[`4084d7a`](https://github.com/AbstractSDK/abstract.js/commit/4084d7a33f751883c8fa83898007edefa4a5a2ff)]: + - @abstract-money/react@1.3.3 + ## 5.0.2 ### Patch Changes diff --git a/packages/provider-graz/package.json b/packages/provider-graz/package.json index 87dc32d5..4d1e7056 100644 --- a/packages/provider-graz/package.json +++ b/packages/provider-graz/package.json @@ -1,6 +1,6 @@ { "name": "@abstract-money/provider-graz", - "version": "5.0.2", + "version": "5.0.3", "description": "Provider for Graz", "homepage": "https://github.com/AbstractSDK/abstract.js#readme", "author": "dalechyn ", diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index a2dc7497..5df98c71 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,11 @@ # @abstract-money/react +## 1.3.3 + +### Patch Changes + +- [#121](https://github.com/AbstractSDK/abstract.js/pull/121) [`4084d7a`](https://github.com/AbstractSDK/abstract.js/commit/4084d7a33f751883c8fa83898007edefa4a5a2ff) Thanks [@adairrr](https://github.com/adairrr)! - Add mutation keys to mutations, overrideable by consumers + ## 1.3.2 ### Patch Changes diff --git a/packages/react/package.json b/packages/react/package.json index 7462a27e..57d69372 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@abstract-money/react", - "version": "1.3.2", + "version": "1.3.3", "description": "React Hooks for Abstract SDK", "homepage": "https://github.com/AbstractSDK/abstract.js#readme", "author": "dalechyn ", diff --git a/packages/react/src/hooks/account/wallet/use-create-remote-account.ts b/packages/react/src/hooks/account/wallet/use-create-remote-account.ts index 20ab56eb..48a92cea 100644 --- a/packages/react/src/hooks/account/wallet/use-create-remote-account.ts +++ b/packages/react/src/hooks/account/wallet/use-create-remote-account.ts @@ -24,13 +24,20 @@ export function useCreateRemoteAccount({ mutation, }: UseCreateRemoteAccountParameters) { const config = useConfig() - const walletClient = config.useAccountWalletClient({ + const accountClient = config.useAccountWalletClient({ chainName, accountId, }) - return useMutation(({ args, ...cosmWasmSignOptions }) => { - if (!walletClient) throw new Error('walletClient is not defined') - return walletClient.createRemoteAccount({ ...cosmWasmSignOptions, ...args }) - }, mutation) + return useMutation( + ['createRemoteAccount', chainName, accountId], + ({ args, ...cosmWasmSignOptions }) => { + if (!accountClient) throw new Error('accountClient is not defined') + return accountClient.createRemoteAccount({ + ...cosmWasmSignOptions, + ...args, + }) + }, + mutation, + ) } diff --git a/packages/react/src/hooks/account/wallet/use-create-sub-account.ts b/packages/react/src/hooks/account/wallet/use-create-sub-account.ts index 50d26ac8..5a36ae38 100644 --- a/packages/react/src/hooks/account/wallet/use-create-sub-account.ts +++ b/packages/react/src/hooks/account/wallet/use-create-sub-account.ts @@ -25,13 +25,17 @@ export function useCreateSubAccount({ mutation, }: UseCreateSubAccountParameters) { const config = useConfig() - const walletClient = config.useAccountWalletClient({ + const accountClient = config.useAccountWalletClient({ chainName, accountId, }) - return useMutation(({ args, ...cosmWasmSignOptions }) => { - if (!walletClient) throw new Error('walletClient is not defined') - return walletClient.createSubAccount({ ...cosmWasmSignOptions, ...args }) - }, mutation) + return useMutation( + ['createSubAccount', chainName, accountId], + ({ args, ...cosmWasmSignOptions }) => { + if (!accountClient) throw new Error('accountClient is not defined') + return accountClient.createSubAccount({ ...cosmWasmSignOptions, ...args }) + }, + mutation, + ) } diff --git a/packages/react/src/hooks/account/wallet/use-deposit.ts b/packages/react/src/hooks/account/wallet/use-deposit.ts index 22e3edca..e306c1dc 100644 --- a/packages/react/src/hooks/account/wallet/use-deposit.ts +++ b/packages/react/src/hooks/account/wallet/use-deposit.ts @@ -33,12 +33,16 @@ export function useDeposit({ DepositMutation > { const config = useConfig() - const accountWalletClient = config.useAccountWalletClient({ + const accountClient = config.useAccountWalletClient({ accountId, chainName, }) - return useMutation(({ args, ...cosmWasmSignOptions }) => { - if (!accountWalletClient) throw new Error('client is not defined') - return accountWalletClient.deposit({ ...args, ...cosmWasmSignOptions }) - }, mutation) + return useMutation( + ['deposit', chainName, accountId], + ({ args, ...cosmWasmSignOptions }) => { + if (!accountClient) throw new Error('client is not defined') + return accountClient.deposit({ ...args, ...cosmWasmSignOptions }) + }, + mutation, + ) } diff --git a/packages/react/src/hooks/account/wallet/use-enable-ibc.ts b/packages/react/src/hooks/account/wallet/use-enable-ibc.ts index 81a8f222..48fe23c6 100644 --- a/packages/react/src/hooks/account/wallet/use-enable-ibc.ts +++ b/packages/react/src/hooks/account/wallet/use-enable-ibc.ts @@ -33,17 +33,21 @@ export function useEnableIbc({ mutation, }: UseEnableIbcParameters) { const config = useConfig() - const walletClient = config.useAccountWalletClient({ + const accountClient = config.useAccountWalletClient({ chainName, accountId, }) - return useMutation(({ args, ...cosmWasmSignOptions }) => { - if (!walletClient) throw new Error('walletClient is not defined') - if (!args.ibcEnabled) { - throw new Error('no action') - } + return useMutation( + ['enableIbc', chainName, accountId], + ({ args, ...cosmWasmSignOptions }) => { + if (!accountClient) throw new Error('accountClient is not defined') + if (!args.ibcEnabled) { + throw new Error('no action') + } - return walletClient.enableIbc({ ...cosmWasmSignOptions, ...args }) - }, mutation) + return accountClient.enableIbc({ ...cosmWasmSignOptions, ...args }) + }, + mutation, + ) } diff --git a/packages/react/src/hooks/account/wallet/use-execute-on-remote-manager.ts b/packages/react/src/hooks/account/wallet/use-execute-on-remote-manager.ts index 908bfbc7..c8e44f36 100644 --- a/packages/react/src/hooks/account/wallet/use-execute-on-remote-manager.ts +++ b/packages/react/src/hooks/account/wallet/use-execute-on-remote-manager.ts @@ -24,16 +24,20 @@ export function useExecuteOnRemoteManager({ mutation, }: UseExecuteOnRemoteManagerParameters) { const config = useConfig() - const walletClient = config.useAccountWalletClient({ + const accountClient = config.useAccountWalletClient({ accountId, chainName: chainName, }) - return useMutation(({ args, ...cosmWasmSignOptions }) => { - if (!walletClient) throw new Error('walletClient is not defined') - return walletClient.executeOnRemoteManager({ - ...cosmWasmSignOptions, - ...args, - }) - }, mutation) + return useMutation( + ['executeOnRemoteManager', chainName, accountId], + ({ args, ...cosmWasmSignOptions }) => { + if (!accountClient) throw new Error('accountClient is not defined') + return accountClient.executeOnRemoteManager({ + ...cosmWasmSignOptions, + ...args, + }) + }, + mutation, + ) } diff --git a/packages/react/src/hooks/account/wallet/use-execute-on-remote-module.ts b/packages/react/src/hooks/account/wallet/use-execute-on-remote-module.ts index 82036791..db8108a1 100644 --- a/packages/react/src/hooks/account/wallet/use-execute-on-remote-module.ts +++ b/packages/react/src/hooks/account/wallet/use-execute-on-remote-module.ts @@ -24,16 +24,20 @@ export function useExecuteOnRemoteModule({ mutation, }: UseExecuteOnRemoteModuleParameters) { const config = useConfig() - const walletClient = config.useAccountWalletClient({ + const accountClient = config.useAccountWalletClient({ accountId, chainName: chainName, }) - return useMutation(({ args, ...cosmWasmSignOptions }) => { - if (!walletClient) throw new Error('walletClient is not defined') - return walletClient.executeOnRemoteModule({ - ...cosmWasmSignOptions, - ...args, - }) - }, mutation) + return useMutation( + ['executeOnRemoteModule', chainName, accountId], + ({ args, ...cosmWasmSignOptions }) => { + if (!accountClient) throw new Error('accountClient is not defined') + return accountClient.executeOnRemoteModule({ + ...cosmWasmSignOptions, + ...args, + }) + }, + mutation, + ) } diff --git a/packages/react/src/hooks/account/wallet/use-execute-remote.ts b/packages/react/src/hooks/account/wallet/use-execute-remote.ts index 41279344..7b73d3ce 100644 --- a/packages/react/src/hooks/account/wallet/use-execute-remote.ts +++ b/packages/react/src/hooks/account/wallet/use-execute-remote.ts @@ -24,13 +24,17 @@ export function useExecuteRemote({ mutation, }: UseExecuteRemoteParameters) { const config = useConfig() - const walletClient = config.useAccountWalletClient({ + const accountClient = config.useAccountWalletClient({ accountId, chainName: chainName, }) - return useMutation(({ args, ...cosmWasmSignOptions }) => { - if (!walletClient) throw new Error('walletClient is not defined') - return walletClient.executeRemote({ ...cosmWasmSignOptions, ...args }) - }, mutation) + return useMutation( + ['executeRemote', chainName, accountId], + ({ args, ...cosmWasmSignOptions }) => { + if (!accountClient) throw new Error('accountClient is not defined') + return accountClient.executeRemote({ ...cosmWasmSignOptions, ...args }) + }, + mutation, + ) } diff --git a/packages/react/src/hooks/account/wallet/use-execute.ts b/packages/react/src/hooks/account/wallet/use-execute.ts index 110f8363..a3d5acea 100644 --- a/packages/react/src/hooks/account/wallet/use-execute.ts +++ b/packages/react/src/hooks/account/wallet/use-execute.ts @@ -28,12 +28,16 @@ export function useExecute({ ExecuteMutation > { const config = useConfig() - const accountWalletClient = config.useAccountWalletClient({ + const accountClient = config.useAccountWalletClient({ chainName, accountId, }) - return useMutation(({ args, ...cosmWasmSignOptions }) => { - if (!accountWalletClient) throw new Error('client is not defined') - return accountWalletClient.execute({ ...cosmWasmSignOptions, ...args }) - }, mutation) + return useMutation( + ['execute', chainName, accountId], + ({ args, ...cosmWasmSignOptions }) => { + if (!accountClient) throw new Error('client is not defined') + return accountClient.execute({ ...cosmWasmSignOptions, ...args }) + }, + mutation, + ) } diff --git a/packages/react/src/hooks/account/wallet/use-request-remote-funds.ts b/packages/react/src/hooks/account/wallet/use-request-remote-funds.ts index 97945e61..8f34bdc8 100644 --- a/packages/react/src/hooks/account/wallet/use-request-remote-funds.ts +++ b/packages/react/src/hooks/account/wallet/use-request-remote-funds.ts @@ -25,16 +25,20 @@ export function useRequestRemoteFunds({ mutation, }: UseRequestRemoteFundsParameters) { const config = useConfig() - const walletClient = config.useAccountWalletClient({ + const accountClient = config.useAccountWalletClient({ chainName, accountId, }) - return useMutation(({ args, ...cosmWasmSignOptions }) => { - if (!walletClient) throw new Error('walletClient is not defined') - return walletClient.requestFundsFromRemote({ - ...cosmWasmSignOptions, - ...args, - }) - }, mutation) + return useMutation( + ['requestRemoteFunds', chainName, accountId], + ({ args, ...cosmWasmSignOptions }) => { + if (!accountClient) throw new Error('accountClient is not defined') + return accountClient.requestFundsFromRemote({ + ...cosmWasmSignOptions, + ...args, + }) + }, + mutation, + ) } diff --git a/packages/react/src/hooks/account/wallet/use-send-funds-to-remote.ts b/packages/react/src/hooks/account/wallet/use-send-funds-to-remote.ts index f40c59ae..134aa418 100644 --- a/packages/react/src/hooks/account/wallet/use-send-funds-to-remote.ts +++ b/packages/react/src/hooks/account/wallet/use-send-funds-to-remote.ts @@ -25,13 +25,20 @@ export function useUseSendFundsToRemote({ mutation, }: UseSendFundsToRemoteParameters) { const config = useConfig() - const walletClient = config.useAccountWalletClient({ + const accountClient = config.useAccountWalletClient({ chainName, accountId, }) - return useMutation(({ args, ...cosmWasmSignOptions }) => { - if (!walletClient) throw new Error('walletClient is not defined') - return walletClient.sendFundsToRemote({ ...cosmWasmSignOptions, ...args }) - }, mutation) + return useMutation( + ['sendFundsToRemote', chainName, accountId], + ({ args, ...cosmWasmSignOptions }) => { + if (!accountClient) throw new Error('accountClient is not defined') + return accountClient.sendFundsToRemote({ + ...cosmWasmSignOptions, + ...args, + }) + }, + mutation, + ) } diff --git a/packages/react/src/hooks/account/wallet/use-update-settings.ts b/packages/react/src/hooks/account/wallet/use-update-settings.ts index a949cb09..46e5e0b0 100644 --- a/packages/react/src/hooks/account/wallet/use-update-settings.ts +++ b/packages/react/src/hooks/account/wallet/use-update-settings.ts @@ -39,7 +39,11 @@ export function useUpdateSettings({ mutation, }) - return useMutation(async ({ args, ...cosmWasmSignOptions }) => { - return await mutateAsync({ ...cosmWasmSignOptions, args }) - }, mutation) + return useMutation( + ['updateSettings', chainName, accountId], + async ({ args, ...cosmWasmSignOptions }) => { + return await mutateAsync({ ...cosmWasmSignOptions, args }) + }, + mutation, + ) } diff --git a/packages/react/src/hooks/account/wallet/use-update-status.ts b/packages/react/src/hooks/account/wallet/use-update-status.ts index b53e22fb..90e74a04 100644 --- a/packages/react/src/hooks/account/wallet/use-update-status.ts +++ b/packages/react/src/hooks/account/wallet/use-update-status.ts @@ -25,13 +25,17 @@ export function useUpdateStatus({ mutation, }: UseUpdateStatusParameters) { const config = useConfig() - const walletClient = config.useAccountWalletClient({ + const accountClient = config.useAccountWalletClient({ chainName, accountId, }) - return useMutation(({ args, ...cosmWasmSignOptions }) => { - if (!walletClient) throw new Error('walletClient is not defined') - return walletClient.updateStatus({ ...cosmWasmSignOptions, ...args }) - }, mutation) + return useMutation( + ['updateStatus', chainName, accountId], + ({ args, ...cosmWasmSignOptions }) => { + if (!accountClient) throw new Error('accountClient is not defined') + return accountClient.updateStatus({ ...cosmWasmSignOptions, ...args }) + }, + mutation, + ) } diff --git a/packages/react/src/hooks/account/wallet/use-upgrade-modules.ts b/packages/react/src/hooks/account/wallet/use-upgrade-modules.ts index 9a20a2d5..81b415e5 100644 --- a/packages/react/src/hooks/account/wallet/use-upgrade-modules.ts +++ b/packages/react/src/hooks/account/wallet/use-upgrade-modules.ts @@ -25,15 +25,19 @@ export function useUpgradeModules({ mutation, }: UseUpgradeModulesParameters) { const config = useConfig() - const walletClient = config.useAccountWalletClient({ + const accountClient = config.useAccountWalletClient({ chainName, accountId, }) - return useMutation(({ args, ...cosmWasmSignOptions }) => { - if (!walletClient) throw new Error('walletClient is not defined') - return walletClient.upgradeModules({ ...cosmWasmSignOptions, ...args }) - }, mutation) + return useMutation( + ['upgradeModules', chainName, accountId], + ({ args, ...cosmWasmSignOptions }) => { + if (!accountClient) throw new Error('accountClient is not defined') + return accountClient.upgradeModules({ ...cosmWasmSignOptions, ...args }) + }, + mutation, + ) } /** diff --git a/packages/react/src/hooks/account/wallet/use-withdraw.ts b/packages/react/src/hooks/account/wallet/use-withdraw.ts index 9d6508d0..769c6418 100644 --- a/packages/react/src/hooks/account/wallet/use-withdraw.ts +++ b/packages/react/src/hooks/account/wallet/use-withdraw.ts @@ -33,12 +33,16 @@ export function useWithdraw({ WithdrawMutation > { const config = useConfig() - const accountWalletClient = config.useAccountWalletClient({ + const accountClient = config.useAccountWalletClient({ chainName, accountId, }) - return useMutation(({ args, ...cosmWasmSignOptions }) => { - if (!accountWalletClient) throw new Error('client is not defined') - return accountWalletClient.withdraw({ ...args, ...cosmWasmSignOptions }) - }, mutation) + return useMutation( + ['withdraw', chainName, accountId], + ({ args, ...cosmWasmSignOptions }) => { + if (!accountClient) throw new Error('accountClient is not defined') + return accountClient.withdraw({ ...args, ...cosmWasmSignOptions }) + }, + mutation, + ) } diff --git a/packages/react/src/hooks/wallet/use-create-account-monarchy.ts b/packages/react/src/hooks/wallet/use-create-account-monarchy.ts index 66210aa4..319cce05 100644 --- a/packages/react/src/hooks/wallet/use-create-account-monarchy.ts +++ b/packages/react/src/hooks/wallet/use-create-account-monarchy.ts @@ -24,11 +24,15 @@ export function useCreateAccountMonarchy({ const config = useConfig() const walletClient = config.useWalletClient({ chainName: chainName }) - return useMutation(({ args, ...cosmWasmSignOptions }) => { - if (!walletClient) throw new Error('walletClient is not defined') - return walletClient.createAccountMonarchy({ - ...args, - ...cosmWasmSignOptions, - }) - }, mutation) + return useMutation( + ['createAccountMonarchy', chainName], + ({ args, ...cosmWasmSignOptions }) => { + if (!walletClient) throw new Error('walletClient is not defined') + return walletClient.createAccountMonarchy({ + ...args, + ...cosmWasmSignOptions, + }) + }, + mutation, + ) } diff --git a/packages/react/src/hooks/wallet/use-create-account.ts b/packages/react/src/hooks/wallet/use-create-account.ts index 59bc045c..a066d285 100644 --- a/packages/react/src/hooks/wallet/use-create-account.ts +++ b/packages/react/src/hooks/wallet/use-create-account.ts @@ -21,8 +21,12 @@ export function useCreateAccount({ chainName, mutation }: UseCreateAccount) { const config = useConfig() const walletClient = config.useWalletClient({ chainName: chainName }) - return useMutation(({ args, ...cosmWasmSignOptions }) => { - if (!walletClient) throw new Error('walletClient is not defined') - return walletClient.createAccount({ ...args, ...cosmWasmSignOptions }) - }, mutation) + return useMutation( + ['createAccount', chainName], + ({ args, ...cosmWasmSignOptions }) => { + if (!walletClient) throw new Error('walletClient is not defined') + return walletClient.createAccount({ ...args, ...cosmWasmSignOptions }) + }, + mutation, + ) } diff --git a/packages/react/src/hooks/wallet/utils/use-sign-and-broadcast.ts b/packages/react/src/hooks/wallet/utils/use-sign-and-broadcast.ts index 282613ba..81103a5e 100644 --- a/packages/react/src/hooks/wallet/utils/use-sign-and-broadcast.ts +++ b/packages/react/src/hooks/wallet/utils/use-sign-and-broadcast.ts @@ -27,14 +27,20 @@ export function useSignAndBroadcast( const { data: senderAddress } = useSenderAddress({ chainName }) - return useMutation(({ args, fee, memo }) => { - if (!signingCosmWasmClient || !senderAddress) - throw new Error('signingCosmWasmClient or senderAddress are not defined') - return signingCosmWasmClient?.signAndBroadcast( - senderAddress, - args.messages, - fee, - memo, - ) - }, options) + return useMutation( + ['signAndBroadcast', chainName, senderAddress], + ({ args, fee, memo }) => { + if (!signingCosmWasmClient || !senderAddress) + throw new Error( + 'signingCosmWasmClient or senderAddress are not defined', + ) + return signingCosmWasmClient?.signAndBroadcast( + senderAddress, + args.messages, + fee, + memo, + ) + }, + options, + ) } diff --git a/packages/react/src/types/queries.ts b/packages/react/src/types/queries.ts index 309b037e..a56af02b 100644 --- a/packages/react/src/types/queries.ts +++ b/packages/react/src/types/queries.ts @@ -20,7 +20,7 @@ export type UseMutationParameters< > = Evaluate< Omit< UseMutationOptions, context>, - 'mutationFn' | 'mutationKey' + 'mutationFn' > >