v0.3.0
Breaking Changes
-
Runtime
no longer passed as lone argument to functions forRunner.create
orrunner.run
. ForRunner.create
:const runner = await Runner.create(async ({ runtime }) => { const alice = await runtime.createAccount('alice') const contract = await runtime.createAndDeploy( 'contract-account-name', './path/to/compiled.wasm' ) return { alice, contract } })
And now the arguments that you returned will be passed to later calls to
runner.run
:runner.run(async ({ alice, contract }) => { alice.call(contract, …) })
-
RUNTIME_DEBUG
renamed toNEAR_RUNNER_DEBUG
Notable Commits
- docs: explain why testnet 17a6bf7
- fix: install near-sandbox if missing and add test (#11) 796eea0
- feat!: pass returned account args to runner.run 8776d89
Full changes: