Skip to content
This repository has been archived by the owner on Mar 16, 2023. It is now read-only.

Commit

Permalink
feat(sdk): catogrised deposits in transaction history
Browse files Browse the repository at this point in the history
  • Loading branch information
joeandrews committed Mar 30, 2020
1 parent 57d38cf commit d26aee2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export default async function fetchTransactions(request) {
const { logs } = await Web3Service.web3.eth.getTransactionReceipt(txHash);
const decodedLogs = [];
logs.forEach((log) => {
if (log.data !== '0x') {
if (log.data !== '0x' && log.address === assetAddress) {
try {
const decodedLog = Web3Service.web3.eth.abi.decodeLog(
[
Expand All @@ -171,7 +171,7 @@ export default async function fetchTransactions(request) {
);
decodedLogs.push(decodedLog);
} catch (e) {
console.warn(e);
// silently fail
}
}
});
Expand Down

0 comments on commit d26aee2

Please sign in to comment.