Skip to content

Commit

Permalink
minor big fix
Browse files Browse the repository at this point in the history
  • Loading branch information
neodix42 committed Dec 6, 2024
1 parent a81244d commit 11dac5a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions cell/src/main/java/org/ton/java/tlb/types/Transaction.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import org.ton.java.cell.CellBuilder;
import org.ton.java.cell.CellSlice;
import org.ton.java.cell.TonHashMapE;
import org.ton.java.utils.Utils;

/**
*
Expand Down Expand Up @@ -53,7 +52,7 @@ public class Transaction {
HashUpdate stateUpdate;
TransactionDescription description;

String hash; // not in tl-b scheme. equals to in_msg.hash in base64 - TODO testing
String hash; // not used

private String getMagic() {
return Long.toBinaryString(magic);
Expand Down Expand Up @@ -128,9 +127,9 @@ public static Transaction deserialize(CellSlice cs) {
tx.setTotalFees(CurrencyCollection.deserialize(cs));
tx.setStateUpdate(HashUpdate.deserialize(CellSlice.beginParse(cs.loadRef())));
tx.setDescription(TransactionDescription.deserialize(CellSlice.beginParse(cs.loadRef())));
if (nonNull(msg)) {
tx.setHash(Utils.bytesToBase64(msg.toCell().getHash()));
}
// if (nonNull(msg)) {
// tx.setHash(Utils.bytesToBase64(msg.toCell().getHash()));
// }
return tx;
}

Expand Down

0 comments on commit 11dac5a

Please sign in to comment.