mirror of
https://github.com/gosticks/iota.lib.java.git
synced 2025-10-16 11:45:37 +00:00
...
This commit is contained in:
parent
7e7b7f029c
commit
4c83f38892
@ -43,12 +43,14 @@ public class Bundle {
|
||||
}
|
||||
|
||||
public void addEntry(int signatureMessageLength, String address, long value, String tag, long timestamp) {
|
||||
for (int i = 0; i < signatureMessageLength; i++) {
|
||||
if (getTransactions() == null) {
|
||||
this.transactions = new ArrayList<>(getTransactions());
|
||||
}
|
||||
|
||||
for (int i = 0; i < signatureMessageLength; i++) {
|
||||
List<Transaction> transactions = new ArrayList<>(getTransactions());
|
||||
Transaction trx = new Transaction(address, String.valueOf(i == 0 ? value : 0), tag, String.valueOf(timestamp));
|
||||
transactions.add(trx);
|
||||
setTransactions(transactions);
|
||||
getTransactions().add(trx);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user