#
load
Imports a ES6 module from a module specifier encoded as a string <transaction id>:<output number>.
#
Type
(rev: string) => Promise<ModuleExportsNamespace>
#
Syntax
await computer.load(rev, wallet)
#
Parameters
#
rev
A string encoding a module specifier.
#
Return value
A ES6 module.
#
Examples
class A extends Contract {}
const rev = await computer.deploy(`export ${A}`)
const { A: AA } = await computer.load(rev)
expect(AA).to.equal(A)