Transaction constructor
Transaction(
- dynamic nonce,
- dynamic epoch,
- dynamic type,
- dynamic to,
- dynamic amount,
- dynamic maxFee,
- dynamic tips,
- dynamic payload,
Implementation
Transaction(nonce, epoch, type, to, amount, maxFee, tips, payload) {
this.nonce = nonce == null ? 0 : nonce;
this.epoch = epoch == null ? 0 : epoch;
this.type = type == null ? 0 : type;
this.to = to == null ? "" : to;
this.amount = amount == null ? 0 : amount;
this.maxFee = maxFee == null ? 0 : maxFee;
this.tips = tips == null ? 0 : tips;
this.payload = payload == null ? null : payload;
this.signature = null;
}