Skip to content

Commit 546d535

Browse files
committed
fix: change account address to hexString .
1 parent 36133ff commit 546d535

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎src/main/java/org/tron/core/WalletSolidity.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ public class WalletSolidity {
3030
public Account getAccount(ByteString addressBs) {
3131
Account accountByAddress = null;
3232
try {
33-
accountByAddress = storeAPI.getAccountByAddress(ByteArray.toHexString(addressBs.toByteArray()));
33+
accountByAddress = storeAPI
34+
.getAccountByAddress(ByteArray.toHexString(addressBs.toByteArray()));
3435
} catch (NonUniqueObjectException e) {
3536
e.printStackTrace();
3637
}

‎src/main/java/org/tron/core/db/api/index/BlockIndex.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class BlockIndex extends AbstractIndex<Block> {
3131
public static final Attribute<Block, String> TRANSACTIONS =
3232
attribute(String.class, "transactions",
3333
block -> block.getTransactionsList().stream()
34-
.map(t -> Sha256Hash.of(t.toByteArray()).toString())
34+
.map(t -> Sha256Hash.of(t.getRawData().toByteArray()).toString())
3535
.collect(Collectors.toList()));
3636
public static final Attribute<Block, Long> WITNESS_ID =
3737
attribute("witness id",

0 commit comments

Comments
 (0)