File tree Expand file tree Collapse file tree 3 files changed +10
-15
lines changed Expand file tree Collapse file tree 3 files changed +10
-15
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ import { FaCheckCircle } from "react-icons/fa";
1919import { GoHourglass , GoXCircle } from "react-icons/go" ;
2020import {
2121 allTransferTypes ,
22- ibcTransferTypes ,
2322 PartialTransferTransactionData ,
2423 TransferStep ,
2524} from "types" ;
@@ -48,10 +47,7 @@ const TransferTransactionReceipt = ({
4847 const getChain = ( chainId : string , address : string ) : Chain | undefined => {
4948 const chain = findChainById ( chainId ) ;
5049 if ( isNamadaAddress ( address ) && chain ) {
51- return parseChainInfo (
52- chain ,
53- isShieldedAddress ( transaction . destinationAddress || "" )
54- ) ;
50+ return parseChainInfo ( chain , isShieldedAddress ( address || "" ) ) ;
5551 }
5652 return chain ;
5753 } ;
@@ -61,15 +57,12 @@ const TransferTransactionReceipt = ({
6157 } , [ transaction ] ) ;
6258
6359 const destinationChain = useMemo ( ( ) => {
64- const isIbc = ibcTransferTypes . includes ( transaction . type ) ;
65- if ( ! isIbc ) return sourceChain ;
66-
67- if ( "destinationChainId" in transaction && transaction . destinationChainId ) {
68- return getChain (
69- transaction . destinationChainId ,
70- transaction . destinationAddress || ""
71- ) ;
72- }
60+ return getChain (
61+ "destinationChainId" in transaction ?
62+ transaction . destinationChainId || ""
63+ : transaction . chainId ,
64+ transaction . destinationAddress || ""
65+ ) ;
7366 } , [ transaction ] ) ;
7467
7568 const sourceWallet =
Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ export const parseChainInfo = (
88) : Chain | undefined => {
99 if ( ! chain ) return undefined ;
1010
11- if ( chain . chain_name !== "namada" ) {
11+ // Includes namadacampfire, namadahousefire, etc.
12+ if ( chain . chain_name . indexOf ( "namada" ) === - 1 ) {
1213 return chain ;
1314 }
1415
Original file line number Diff line number Diff line change @@ -310,6 +310,7 @@ export const transparentTransferTypes: Array<keyof AllTransferStages> = [
310310 "TransparentToIbc" ,
311311 "TransparentToTransparent" ,
312312 "IbcToTransparent" ,
313+ "TransparentToShielded" ,
313314] as const ;
314315
315316export const ibcTransferTypes : Array < keyof AllTransferStages > = [
You can’t perform that action at this time.
0 commit comments