TransactionMessage constructor
TransactionMessage({})
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;
}