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;
}