Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

"Contract is not active" what? #4

Open
ailiersg opened this issue Apr 27, 2023 · 0 comments
Open

"Contract is not active" what? #4

ailiersg opened this issue Apr 27, 2023 · 0 comments

Comments

@ailiersg
Copy link

ailiersg commented Apr 27, 2023

const system = await ContractSystem.create();

let treasure = await system.treasure('name of treasure');

const sampleContract = await SampleTactContract.fromInit(treasure.address);
const contract = system.open(sampleContract);

await system.run();

let counter = await contract.getCounter();
console.log(counter); // Prints out counter value => Error: Contract is not active

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant