TransactionMessage constructor

TransactionMessage({
  1. List<int>? nonce,
  2. List<int>? gasPrice,
  3. List<int>? gasLimit,
  4. String? toAddress,
  5. List<int>? amount,
  6. List<int>? payload,
  7. List<int>? fromShardId,
  8. List<int>? toShardId,
})

Implementation

factory TransactionMessage({
  $core.List<$core.int>? nonce,
  $core.List<$core.int>? gasPrice,
  $core.List<$core.int>? gasLimit,
  $core.String? toAddress,
  $core.List<$core.int>? amount,
  $core.List<$core.int>? payload,
  $core.List<$core.int>? fromShardId,
  $core.List<$core.int>? toShardId,
}) {
  final _result = create();
  if (nonce != null) {
    _result.nonce = nonce;
  }
  if (gasPrice != null) {
    _result.gasPrice = gasPrice;
  }
  if (gasLimit != null) {
    _result.gasLimit = gasLimit;
  }
  if (toAddress != null) {
    _result.toAddress = toAddress;
  }
  if (amount != null) {
    _result.amount = amount;
  }
  if (payload != null) {
    _result.payload = payload;
  }
  if (fromShardId != null) {
    _result.fromShardId = fromShardId;
  }
  if (toShardId != null) {
    _result.toShardId = toShardId;
  }
  return _result;
}