Script constructor

Script({
  1. List<int>? codeHash,
  2. String? hashType,
  3. List<int>? args,
})

Implementation

factory Script({
  $core.List<$core.int>? codeHash,
  $core.String? hashType,
  $core.List<$core.int>? args,
}) {
  final _result = create();
  if (codeHash != null) {
    _result.codeHash = codeHash;
  }
  if (hashType != null) {
    _result.hashType = hashType;
  }
  if (args != null) {
    _result.args = args;
  }
  return _result;
}