Skip to content

Commit 689c17e

Browse files
Invert entity type check
Signed-off-by: Bilyana Gospodinova <bilyana.gospodinova14@gmail.com>
1 parent b923328 commit 689c17e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

web3/src/main/java/org/hiero/mirror/web3/state/keyvalue/AccountReadableKVState.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
package org.hiero.mirror.web3.state.keyvalue;
44

55
import 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

99
import com.hedera.hapi.node.base.AccountID;
1010
import 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.

0 commit comments

Comments
 (0)