o1-labs / zkapp-cli

CLI to create a zkApp (zero-knowledge app) for Mina Protocol
https://docs.minaprotocol.com/zkapps/how-to-write-a-zkapp
Apache License 2.0
115 stars 43 forks source link

Unit tests for 3rd party library smart-contracts lookup (proper env. mocking). #650

Closed shimkiv closed 3 weeks ago

shimkiv commented 3 months ago

As part of this PR https://github.com/o1-labs/zkapp-cli/pull/640 we need to add more tests (at least 1 more) to cover the case that involves 3rd party smart-contract library usage.

import { Add, ShadowMyAdd } from 'o1js-sc-inheritance';
export class ShadowAdd extends Add {}
export class AddAdd extends Add {}
export class AddShadow extends Add {}
export class SomeShadow extends AddShadow {}
export class AnotherShadow extends ShadowMyAdd {}

Internal discussion