From a87d82b0364e3bcfd57cb25b005162f023a60ba7 Mon Sep 17 00:00:00 2001 From: npty Date: Wed, 11 Dec 2024 13:56:40 +0700 Subject: [PATCH] chore: update spender account --- src/libs/TransactionRecoveryApi/AxelarGMPRecoveryAPI.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/libs/TransactionRecoveryApi/AxelarGMPRecoveryAPI.ts b/src/libs/TransactionRecoveryApi/AxelarGMPRecoveryAPI.ts index 10089bca..6419bd46 100644 --- a/src/libs/TransactionRecoveryApi/AxelarGMPRecoveryAPI.ts +++ b/src/libs/TransactionRecoveryApi/AxelarGMPRecoveryAPI.ts @@ -911,8 +911,6 @@ export class AxelarGMPRecoveryAPI extends AxelarRecoveryApi { // this will be StellarSdk.Networks.PUBLIC once mainnet is supported const networkPassphrase = StellarSdk.Networks.TESTNET; - const senderAccount = await server.getAccount(senderAddress); - const caller = StellarSdk.nativeToScVal(StellarSdk.Address.fromString(senderAddress), { type: "address", }); @@ -928,7 +926,8 @@ export class AxelarGMPRecoveryAPI extends AxelarRecoveryApi { tokenToScVal(tokenAddress || nativeAssetAddress, amount || "1") ); - const transaction = new StellarSdk.TransactionBuilder(senderAccount, { + const spenderAccount = await server.getAccount(spender); + const transaction = new StellarSdk.TransactionBuilder(spenderAccount, { fee: StellarSdk.BASE_FEE, networkPassphrase, })