From 24b523b1670bda95d64b175785cd09c19439d50c Mon Sep 17 00:00:00 2001 From: Mingyue Liang Date: Wed, 28 Aug 2024 19:21:23 +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')