Skip to content

v0.3.0

Compare
Choose a tag to compare
@chadoh chadoh released this 11 Aug 15:24
· 377 commits to main since this release

Breaking Changes

  • Runtime no longer passed as lone argument to functions for Runner.create or runner.run. For Runner.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 to NEAR_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:

near/near-workspaces@v0.2.0...v0.3.0