CreateContractOp constructor Null safety

CreateContractOp(
  1. String _wasmId,
  2. {XdrUint256? salt,
  3. 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));
  }
}