File tree 1 file changed +2
-2
lines changed
wormhole-connect/src/hooks
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ const useSendTransaction = (props: Props): ReturnProps => {
145
145
dispatch ( setIsTransactionInProgress ( true ) ) ;
146
146
147
147
try {
148
- const fromConfig = config . chains [ sourceChain ! ] ;
148
+ const fromConfig = config . chains [ sourceChain ] ;
149
149
150
150
if ( fromConfig ?. context === Context . ETH ) {
151
151
const chainId = fromConfig . chainId ;
@@ -211,7 +211,7 @@ const useSendTransaction = (props: Props): ReturnProps => {
211
211
recipient : receivingWallet . address ,
212
212
toChain : receipt . to ,
213
213
fromChain : receipt . from ,
214
- tokenAddress : getWrappedToken ( sourceToken ) . tokenId ! . address . toString ( ) ,
214
+ tokenAddress : getWrappedToken ( sourceToken ) . tokenId . address . toString ( ) ,
215
215
token : sourceToken . tuple ,
216
216
tokenDecimals : sourceToken . decimals ,
217
217
receivedToken : destToken . tuple , // TODO: possibly wrong (e..g if portico swap fails)
You can’t perform that action at this time.
0 commit comments