Untitled
const { Computer } = require('bitcoin-computer') // the smart contract class Counter { constructor() { this.n = 0 } inc() { this.n += 1 } } // run the smart contract ;(async () => { const seed = 'seed_phrase' const chain = 'BSV' const network = 'testnet' const computer = new Computer({ seed, chain, network }) console.log("before counter") const counter = await computer.new(Counter, []) await counter.inc() console.log(counter) })()