Skip to content

Commit fea6a68

Browse files
committed
minor change
1 parent b6add01 commit fea6a68

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎src/main/java/org/tron/core/actuator/UpdateAccountActuator.java‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
import org.tron.core.capsule.AccountCapsule;
99
import org.tron.core.capsule.TransactionResultCapsule;
1010
import org.tron.core.capsule.utils.TransactionUtil;
11+
import org.tron.core.db.AccountIdIndexStore;
12+
import org.tron.core.db.AccountIndexStore;
1113
import org.tron.core.db.AccountStore;
1214
import org.tron.core.db.Manager;
1315
import org.tron.core.exception.ContractExeException;
@@ -36,12 +38,13 @@ public boolean execute(TransactionResultCapsule ret) throws ContractExeException
3638

3739
byte[] ownerAddress = accountUpdateContract.getOwnerAddress().toByteArray();
3840
AccountStore accountStore = dbManager.getAccountStore();
39-
// AccountIdIndexStore accountIndexStore = dbManager.getAccountIdIndexStore();
41+
AccountIndexStore accountIndexStore = dbManager.getAccountIndexStore();
4042
AccountCapsule account = accountStore.get(ownerAddress);
4143

4244
account.setAccountName(accountUpdateContract.getAccountName().toByteArray());
4345
accountStore.put(ownerAddress, account);
44-
// accountIndexStore.put(account);
46+
accountIndexStore.put(account);
47+
4548
ret.setStatus(fee, code.SUCESS);
4649

4750
return true;

0 commit comments

Comments
 (0)