Skip to content

Commit

Permalink
statemanager: remove as any typecast
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrocheleau committed Aug 12, 2024
1 parent 5f2fdd4 commit 5a9d585
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/statemanager/src/rpcStateManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,11 +344,7 @@ export class RPCStateManager implements StateManagerInterface {
if (this.DEBUG) this._debug(`retrieving proof from provider for ${address.toString()}`)
const proof = await fetchFromProvider(this._provider, {
method: 'eth_getProof',
params: [
address.toString(),
[storageSlots.map((slot) => bytesToHex(slot))],
this._blockTag,
] as any,
params: [address.toString(), storageSlots.map(bytesToHex), this._blockTag],

Check warning on line 347 in packages/statemanager/src/rpcStateManager.ts

View check run for this annotation

Codecov / codecov/patch

packages/statemanager/src/rpcStateManager.ts#L347

Added line #L347 was not covered by tests
})

return proof
Expand Down

0 comments on commit 5a9d585

Please sign in to comment.