diff --git a/src.ts/abi/typed.ts b/src.ts/abi/typed.ts index ffbfe58a58..346b2d570a 100644 --- a/src.ts/abi/typed.ts +++ b/src.ts/abi/typed.ts @@ -771,7 +771,10 @@ export class Typed { * Returns true only if %%value%% is a [[Typed]] instance. */ static isTyped(value: any): value is Typed { - return (value && value._typedSymbol === _typedSymbol); + return (value + && typeof(value) === "object" + && "_typedSymbol" in value + && value._typedSymbol === _typedSymbol); } /**