Skip to content

Commit fe04153

Browse files
committed
func(vm): remove account name for history block hash contract
1 parent e2b0660 commit fe04153

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

framework/src/main/java/org/tron/core/db/HistoryBlockHashUtil.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,13 @@ public class HistoryBlockHashUtil {
5252

5353
// Account template for the new-account branch of {@code deploy()} (no prior
5454
// state at the canonical address). Equivalent to create2's
55-
// {@code createAccount(addr, name, Contract)}: only type, accountName, and
56-
// address are set. The pre-existing-account branch never uses this template
55+
// {@code createAccount(addr, Contract)}: only type, and address
56+
// are set. The pre-existing-account branch never uses this template
5757
// — it mutates the existing capsule in place to preserve balance / asset
5858
// state, mirroring the CREATE2 collision path. Safe to share: the proto is
5959
// immutable, and AccountCapsule mutations rebuild via {@code toBuilder}.
6060
private static final Account HISTORY_STORAGE_ACCOUNT = Account.newBuilder()
6161
.setType(Protocol.AccountType.Contract)
62-
.setAccountName(ByteString.copyFromUtf8(HISTORY_STORAGE_NAME))
6362
.setAddress(ByteString.copyFrom(HISTORY_STORAGE_ADDRESS))
6463
.build();
6564

0 commit comments

Comments
 (0)