From 2f6e06c837689df058992981ae202a2631832e4d Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Thu, 22 Apr 2021 06:26:56 -0400 Subject: [PATCH] Do not throw on ABI _error_ type (#1493, #1497). --- packages/abi/src.ts/fragments.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/abi/src.ts/fragments.ts b/packages/abi/src.ts/fragments.ts index 281190e4da..941c01fad3 100644 --- a/packages/abi/src.ts/fragments.ts +++ b/packages/abi/src.ts/fragments.ts @@ -445,6 +445,7 @@ export abstract class Fragment { return EventFragment.fromObject(value); case "constructor": return ConstructorFragment.fromObject(value); + case "error": case "fallback": case "receive": // @TODO: Something? Maybe return a FunctionFragment? A custom DefaultFunctionFragment?