Skip to content

Commit 587bec3

Browse files
authored
fix: undefined chain after token transfer from flow (#500)
1 parent 9d1a83f commit 587bec3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apps/maestro/src/server/routers/gmp/getTransactionStatusOnDestinationChains.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export const SEARCHGMP_SOURCE = {
1515
"executed",
1616
"callback",
1717
"interchain_token_deployment_started.destinationChain",
18+
"interchain_transfer.destinationChain",
1819
],
1920
excludes: [
2021
"call.transaction",
@@ -61,6 +62,7 @@ export const getTransactionStatusOnDestinationChains = publicProcedure
6162
call,
6263
status: firstHopStatus,
6364
interchain_token_deployment_started: tokenDeployment,
65+
interchain_transfer: tokenTransfer,
6466
} = gmpData;
6567

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

7981
const destinationChain =
82+
tokenTransfer?.destinationChain?.toLowerCase() ||
8083
tokenDeployment?.destinationChain?.toLowerCase() ||
8184
call.returnValues.destinationChain.toLowerCase();
8285

0 commit comments

Comments
 (0)