Skip to content

Commit

Permalink
chore: update spender account
Browse files Browse the repository at this point in the history
  • Loading branch information
npty committed Dec 11, 2024
1 parent 6bbd6b2 commit a87d82b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/libs/TransactionRecoveryApi/AxelarGMPRecoveryAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
});
Expand All @@ -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,
})
Expand Down

0 comments on commit a87d82b

Please sign in to comment.