@cfxdevkit/compiler / getSimpleStorageContract
Function: getSimpleStorageContract()
getSimpleStorageContract():
CompilationOutput
Defined in: templates/simple-storage.ts:73
Get the compiled SimpleStorage contract artefact.
The result is memoised: compilation only runs once per process.
Returns
Throws
Error if solc compilation fails
Example
const { bytecode, abi } = getSimpleStorageContract();
// Deploy with a `uint256 initialValue` constructor argument