From c1a8439f755174ac3fe72af8c8f71852667749e2 Mon Sep 17 00:00:00 2001 From: lmy375 <375393807@qq.com> Date: Wed, 28 Aug 2024 20:41:00 +0800 Subject: [PATCH] fix(tx-builder): fix contract method filtering --- apps/tx-builder/src/lib/interfaceRepository.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/tx-builder/src/lib/interfaceRepository.ts b/apps/tx-builder/src/lib/interfaceRepository.ts index e6c6bf6f8..c09f54264 100644 --- a/apps/tx-builder/src/lib/interfaceRepository.ts +++ b/apps/tx-builder/src/lib/interfaceRepository.ts @@ -54,6 +54,10 @@ class InterfaceRepository { return false } + if (e?.type?.toLowerCase() === 'error') { + return false + } + return !e.constant }) .filter((m: any) => m.type !== 'constructor')