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