create-pact-toolbox-app
Version:
Create Pact Toolbox apps with one command
15 lines (13 loc) • 433 B
text/typescript
import { createScript } from "pact-toolbox";
export default createScript({
autoStartNetwork: true,
network: "devnet",
run: async ({ client, args, logger }) => {
console.log(args);
const isDep = await client.isContractDeployed("coin");
logger.info(`coin is deployed: ${isDep}`);
const s = await client.deployContract("hello-world", {});
console.log(s);
console.log(await client.listModules());
},
});