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