build method
Builds a transaction. It will increment the sequence number of the source account.
Implementation
Transaction build() {
if (_mMaxOperationFee == null) {
_mMaxOperationFee = AbstractTransaction.MIN_BASE_FEE;
}
List<Operation> operations = [];
operations.addAll(_mOperations);
Transaction transaction = Transaction(
_mSourceAccount.muxedAccount,
operations.length * _mMaxOperationFee!,
_mSourceAccount.incrementedSequenceNumber,
operations,
_mMemo,
_mPreconditions);
// Increment sequence number when there were no exceptions when creating a transaction
_mSourceAccount.incrementSequenceNumber();
return transaction;
}