Skip to content

Commit

Permalink
fix: undefined chain after token transfer from flow (#500)
Browse files Browse the repository at this point in the history
  • Loading branch information
npty authored Feb 8, 2025
1 parent 9d1a83f commit 587bec3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const SEARCHGMP_SOURCE = {
"executed",
"callback",
"interchain_token_deployment_started.destinationChain",
"interchain_transfer.destinationChain",
],
excludes: [
"call.transaction",
Expand Down Expand Up @@ -61,6 +62,7 @@ export const getTransactionStatusOnDestinationChains = publicProcedure
call,
status: firstHopStatus,
interchain_token_deployment_started: tokenDeployment,
interchain_transfer: tokenTransfer,
} = gmpData;

const chainType = gmpData.call.chain_type;
Expand All @@ -77,6 +79,7 @@ export const getTransactionStatusOnDestinationChains = publicProcedure
}

const destinationChain =
tokenTransfer?.destinationChain?.toLowerCase() ||
tokenDeployment?.destinationChain?.toLowerCase() ||
call.returnValues.destinationChain.toLowerCase();

Expand Down

0 comments on commit 587bec3

Please sign in to comment.