File tree Expand file tree Collapse file tree
web3/src/main/java/org/hiero/mirror/web3/state/keyvalue Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33package org .hiero .mirror .web3 .state .keyvalue ;
44
55import static com .hedera .node .app .service .token .impl .schemas .V0490TokenSchema .ACCOUNTS_STATE_ID ;
6- import static org .hiero .mirror .common .domain .entity .EntityType .SCHEDULE ;
7- import static org .hiero .mirror .common .domain .entity .EntityType .TOKEN ;
6+ import static org .hiero .mirror .common .domain .entity .EntityType .ACCOUNT ;
7+ import static org .hiero .mirror .common .domain .entity .EntityType .CONTRACT ;
88
99import com .hedera .hapi .node .base .AccountID ;
1010import com .hedera .hapi .node .state .token .Account ;
@@ -68,7 +68,7 @@ protected Account readFromDataSource(@NonNull AccountID key) {
6868 final var timestamp = ContractCallContext .get ().getTimestamp ();
6969 return commonEntityAccessor
7070 .get (key , timestamp )
71- .filter (entity -> entity .getType () != TOKEN && entity .getType () != SCHEDULE )
71+ .filter (entity -> entity .getType () == ACCOUNT || entity .getType () == CONTRACT )
7272 .map (entity -> {
7373 final var account = accountFromEntity (entity , timestamp );
7474 // Associate the account alias with this entity in the cache, if any.
You can’t perform that action at this time.
0 commit comments