From 7a91ce6053e1d4750ebe477488b429f5e9f37600 Mon Sep 17 00:00:00 2001 From: F4ever Date: Thu, 19 Sep 2024 15:52:43 +0200 Subject: [PATCH] feat: tobytes32 --- src/providers/execution/contracts/lido.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/providers/execution/contracts/lido.py b/src/providers/execution/contracts/lido.py index d39b1beb0..5d5ba8836 100644 --- a/src/providers/execution/contracts/lido.py +++ b/src/providers/execution/contracts/lido.py @@ -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 @@ -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(), + }, }, }