From f7c7b54d0fc0b5efeee745f7b7eb2ba9623e65b8 Mon Sep 17 00:00:00 2001 From: Jordan Messina Date: Mon, 4 Dec 2023 23:20:48 -0500 Subject: [PATCH] Update src/protocol/weth/weth.ts Co-authored-by: Paul Cowgill --- src/protocol/weth/weth.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/protocol/weth/weth.ts b/src/protocol/weth/weth.ts index 31ea157f..1451f0c8 100644 --- a/src/protocol/weth/weth.ts +++ b/src/protocol/weth/weth.ts @@ -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; }