Skip to content

Commit

Permalink
chore: update denom
Browse files Browse the repository at this point in the history
  • Loading branch information
npty committed Oct 16, 2024
1 parent 86bc552 commit 6e6c77c
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/libs/TransactionRecoveryApi/AxelarGMPRecoveryAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -889,17 +889,15 @@ export class AxelarGMPRecoveryAPI extends AxelarRecoveryApi {
};
}

const denomOnSrcChain = getIBCDenomOnSrcChain(
tx.gas_paid?.returnValues?.denom,
chainConfig,
chainConfigs
);
const denom = tx.gas_paid?.returnValues?.asset;

const denomOnSrcChain = getIBCDenomOnSrcChain(denom, chainConfig, chainConfigs);

if (!matchesOriginalTokenPayment(params.token, denomOnSrcChain)) {
return {
success: false,
info: `The token you are trying to send does not match the token originally \
used for gas payment. Please send ${tx.gas_paid?.returnValues?.denom} instead`,
used for gas payment. Please send ${denom} instead`,
};
}

Expand All @@ -913,7 +911,7 @@ export class AxelarGMPRecoveryAPI extends AxelarRecoveryApi {
tx.call.returnValues.destinationChain,
gasLimit,
autocalculateGasOptions?.gasMultipler,
tx.gas_paid?.returnValues?.denom ?? "uaxl"
denom ?? "uaxl"
),
};

Expand Down

0 comments on commit 6e6c77c

Please sign in to comment.