CreateContractOp constructor Null safety
- String _wasmId,
- {XdrUint256? salt,
- XdrLedgerFootprint? footprint}
Implementation
CreateContractOp(this._wasmId,
{XdrUint256? salt, XdrLedgerFootprint? footprint})
: super(XdrHostFunctionType.HOST_FUNCTION_TYPE_CREATE_CONTRACT,
footprint: footprint) {
if (salt != null) {
this._salt = salt;
} else {
this._salt = new XdrUint256(TweetNaCl.randombytes(32));
}
}