Skip to content

Commit

Permalink
Fix portal
Browse files Browse the repository at this point in the history
  • Loading branch information
vrtnd committed Sep 27, 2024
1 parent b7c29e6 commit ded6b93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/adapters/portal/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ const constructParams = (chain: string) => {
const events = await getTxDataFromEVMEventLogs("portal", chain as Chain, fromBlock, toBlock, [
logMessagePublishedEventParams,
]);
const solanaLogs = await getSolanaEventsDestChain(fromBlock, toBlock, chain);

let hashes = events.map((e) => e.txHash);
// The token bridge doesn't emit events on withdrawals/inbound token transfers,
// only able to get from subgraph, Etherscan API, etc.
Expand All @@ -272,7 +272,7 @@ const constructParams = (chain: string) => {

const transfers = await portalNativeAndWrappedTransfersFromHashes(chain, hashes, tokenBridge);
// console.log(`transfers: ${JSON.stringify(transfers, null, 2)}`);
return [...transfers, ...solanaLogs];
return transfers;
};
};

Expand Down

0 comments on commit ded6b93

Please sign in to comment.