From 9cbefc5b2daa4a897641115eafa7fe7d14faeb64 Mon Sep 17 00:00:00 2001 From: Moon <375393807@qq.com> Date: Wed, 28 Aug 2024 20:46:01 +0800 Subject: [PATCH] fix(tx-builder): fix contract method filtering (#816) --- 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')