Skip to content

Commit

Permalink
feat: tobytes32
Browse files Browse the repository at this point in the history
  • Loading branch information
F4ever committed Sep 19, 2024
1 parent 17ad5ab commit 7a91ce6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/providers/execution/contracts/lido.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import logging

from eth_typing import ChecksumAddress
from web3.types import Wei, BlockIdentifier
from web3.types import Wei, BlockIdentifier, CallOverrideParams

from src.modules.accounting.types import LidoReportRebase, BeaconStat
from src.providers.execution.base_interface import ContractInterface
Expand Down Expand Up @@ -44,7 +44,9 @@ def handle_oracle_report(
# Fix: Sanity checker uses `lastProcessingRefSlot` from AccountingOracle to
# properly process negative rebase sanity checks. Since current simulation skips call to AO,
# setting up `lastProcessingRefSlot` directly.
self.w3.keccak(text="lido.BaseOracle.lastProcessingRefSlot").hex(): ref_slot,
'stateDiff': {
self.w3.keccak(text="lido.BaseOracle.lastProcessingRefSlot").hex(): '0x' + ref_slot.to_bytes(32).hex(),
},
},
}

Expand Down

0 comments on commit 7a91ce6

Please sign in to comment.