Skip to content

Commit

Permalink
Merge pull request #437 from axelarnetwork/fix/detect-transfer-event
Browse files Browse the repository at this point in the history
fix/detect transfer event
  • Loading branch information
alanrsoares authored Oct 17, 2023
2 parents 79dccdb + ca97a71 commit 2858953
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ export const SrcChainTxConfirmation = () => {

const destChainId = useSwapStore(getDestChainId);

console.log({ destChainId, tokenAddress });

useDetectUnwrapTransfer();
useDetectDestTransferConfirmation();
useContractEvent({
Expand All @@ -36,9 +34,7 @@ export const SrcChainTxConfirmation = () => {
abi: erc20ABI,
eventName: "Transfer",
listener(logs) {
const log = logs.find(({ address }) => address === destAddress);

console.log({ log, logs });
const log = logs.find(({ args }) => args.to === destAddress);

if (log) {
setSwapStatus(SwapStatus.FINISHED);
Expand Down

1 comment on commit 2858953

@vercel
Copy link

@vercel vercel bot commented on 2858953 Oct 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.