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 84fee20 commit d37aa48Copy full SHA for d37aa48
src/subcontexts/contract-context.ts
@@ -167,8 +167,8 @@ export class ContractContext {
167
return false
168
} else if (proto === Contract) {
169
return true
170
- } else if (proto === null) {
171
- return false
+ } else if (proto === Object || proto === null) {
+ throw new Error('Cannot create a contract for class as it does not extend Contract or BaseContract')
172
}
173
return this.isArc4(proto)
174
0 commit comments