From a0ff23aaed58eb699498a08bcdee98e5e49aceb6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 14 Feb 2024 09:30:50 +0000 Subject: [PATCH] Update Suave.sol library to https://github.com/flashbots/suave-geth/commit/841df8eafc4627f81f1d86486ad3e149d15c4f5f (#45) Co-authored-by: sukoneck --- src/suavelib/Suave.sol | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/suavelib/Suave.sol b/src/suavelib/Suave.sol index d04249e..7a4551b 100644 --- a/src/suavelib/Suave.sol +++ b/src/suavelib/Suave.sol @@ -16,6 +16,7 @@ library Suave { bytes32 random; Withdrawal[] withdrawals; bytes extra; + bytes32 beaconRoot; bool fillPending; } @@ -218,8 +219,8 @@ library Suave { return abi.decode(data, (DataRecord)); } - function privateKeyGen() internal view returns (string memory) { - (bool success, bytes memory data) = PRIVATE_KEY_GEN.staticcall(abi.encode()); + function privateKeyGen() internal returns (string memory) { + (bool success, bytes memory data) = PRIVATE_KEY_GEN.call(abi.encode()); if (!success) { revert PeekerReverted(PRIVATE_KEY_GEN, data); }