export async function findSmartContracts(path) {
...
//
let results = str.matchAll(/class (\w*) extends SmartContract/gi);
}
If contract extends not the SmartContract directly but any contract that extends SmartContract (e.g. TokenContract from o1js), it's not found by the deployer
Describe the bug
Trying to deploy a token like
where
TokenContract
extends SmartContract I got errorThe error is in function
findSmartContracts
main/src/lib/deploy.js#L677 that expects the following pattern:If contract extends not the SmartContract directly but any contract that extends SmartContract (e.g. TokenContract from o1js), it's not found by the deployer
Steps to Reproduce
Create contract like here https://github.com/o1-labs/o1js/blob/main/src/examples/zkapps/dex/erc20.ts Try to deploy it
System Info
Severity
serious, but I can work around it
Additional Information
No response