From 85a9d77c4d80bea701235632278796a53d804404 Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Mon, 24 Jul 2023 00:03:12 -0400 Subject: [PATCH] Reflect symbols in the Contract Proxy to target (#4048). --- src.ts/contract/contract.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src.ts/contract/contract.ts b/src.ts/contract/contract.ts index 44ca8ea2c6..6d4df700ff 100644 --- a/src.ts/contract/contract.ts +++ b/src.ts/contract/contract.ts @@ -755,7 +755,7 @@ export class BaseContract implements Addressable, EventEmitterable { - if (_prop in target || passProperties.indexOf(_prop) >= 0) { + if (_prop in target || passProperties.indexOf(_prop) >= 0 || typeof(_prop) === "symbol") { return Reflect.get(target, _prop, receiver); } @@ -767,7 +767,7 @@ export class BaseContract implements Addressable, EventEmitterable { - if (prop in target || passProperties.indexOf(prop) >= 0) { + if (prop in target || passProperties.indexOf(prop) >= 0 || typeof(prop) === "symbol") { return Reflect.has(target, prop); }