Skip to content

Commit 41d0bb0

Browse files
committed
Fix lint errors
Signed-off-by: Emre Bogazliyanlioglu <emre@wormholelabs.xyz>
1 parent 3927121 commit 41d0bb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wormhole-connect/src/hooks/useConfirmTransaction.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ const useSendTransaction = (props: Props): ReturnProps => {
145145
dispatch(setIsTransactionInProgress(true));
146146

147147
try {
148-
const fromConfig = config.chains[sourceChain!];
148+
const fromConfig = config.chains[sourceChain];
149149

150150
if (fromConfig?.context === Context.ETH) {
151151
const chainId = fromConfig.chainId;
@@ -211,7 +211,7 @@ const useSendTransaction = (props: Props): ReturnProps => {
211211
recipient: receivingWallet.address,
212212
toChain: receipt.to,
213213
fromChain: receipt.from,
214-
tokenAddress: getWrappedToken(sourceToken).tokenId!.address.toString(),
214+
tokenAddress: getWrappedToken(sourceToken).tokenId.address.toString(),
215215
token: sourceToken.tuple,
216216
tokenDecimals: sourceToken.decimals,
217217
receivedToken: destToken.tuple, // TODO: possibly wrong (e..g if portico swap fails)

0 commit comments

Comments
 (0)