We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c47d2eb commit 0e1721bCopy full SHA for 0e1721b
packages/contracts/src.ts/index.ts
@@ -741,9 +741,12 @@ export class Contract {
741
742
const signature = signatures[0];
743
744
- if (this[name] == null) {
745
- defineReadOnly(this, name, this[signature]);
746
- }
+ // If overwriting a member property that is null, swallow the error
+ try {
+ if (this[name] == null) {
747
+ defineReadOnly(this, name, this[signature]);
748
+ }
749
+ } catch (e) { }
750
751
if (this.functions[name] == null) {
752
defineReadOnly(this.functions, name, this.functions[signature]);
0 commit comments