@cfxdevkit/compiler / getTestTokenContract
Function: getTestTokenContract()
getTestTokenContract():
CompilationOutput
Defined in: templates/test-token.ts:105
Get the compiled TestToken contract artefact.
The result is memoised: compilation only runs once per process.
Returns
Throws
Error if solc compilation fails
Example
const { bytecode, abi } = getTestTokenContract();
// Deploy with (name, symbol, initialSupply) constructor args