Skip to content

Commit

Permalink
Update src/protocol/weth/weth.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Cowgill <[email protected]>
  • Loading branch information
jordanmessina and pcowgill authored Dec 5, 2023
1 parent e599607 commit f7c7b54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/protocol/weth/weth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export const detectWeth = (transaction: Transaction): boolean => {
return false;
}

if (!decode || !decode.name) return false;
if (decode.name !== 'deposit' && decode.name !== 'withdraw') {
return false;
}
Expand Down

0 comments on commit f7c7b54

Please sign in to comment.