Skip to content

Commit

Permalink
fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigoherrerai committed Apr 6, 2024
1 parent bbda2e4 commit 608830d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/statemanager/src/rpcStateManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,13 +263,13 @@ export class RPCStateManager implements EVMStateManagerInterface {
: undefined
}

let account = await this.getAccountFromProvider(address)
const accountFromProvider = await this.getAccountFromProvider(address)

if (account.codeHash.every((e:any)=> e === 0) || equalsBytes(account.serialize(), KECCAK256_RLP_EMPTY_ACCOUNT)) {
account = undefined
} else {
account = Account.fromRlpSerializedAccount(account.serialize())
}
const account =
accountFromProvider.codeHash.every((e: any) => e === 0) ||
equalsBytes(accountFromProvider.serialize(), KECCAK256_RLP_EMPTY_ACCOUNT)
? undefined
: Account.fromRlpSerializedAccount(accountFromProvider.serialize())

this._accountCache?.put(address, account)

Expand Down

0 comments on commit 608830d

Please sign in to comment.