diff --git a/beacon_node/beacon_chain/src/payload_bid_verification/tests.rs b/beacon_node/beacon_chain/src/payload_bid_verification/tests.rs index feeb361319..cf132c2a97 100644 --- a/beacon_node/beacon_chain/src/payload_bid_verification/tests.rs +++ b/beacon_node/beacon_chain/src/payload_bid_verification/tests.rs @@ -214,15 +214,19 @@ impl TestContext { value: u64, parent_block_root: Hash256, ) -> Arc> { - make_signed_bid( - slot, - builder_index, - fee_recipient, - gas_limit, - value, - parent_block_root, - self.expected_prev_randao(), - ) + Arc::new(SignedExecutionPayloadBid { + message: ExecutionPayloadBid { + slot, + builder_index, + fee_recipient, + gas_limit, + value, + parent_block_root, + prev_randao: self.expected_prev_randao(), + ..ExecutionPayloadBid::default() + }, + signature: Signature::empty(), + }) } fn insert_non_canonical_block(&self) -> Hash256 { @@ -267,30 +271,6 @@ impl TestContext { } } -fn make_signed_bid( - slot: Slot, - builder_index: u64, - fee_recipient: Address, - gas_limit: u64, - value: u64, - parent_block_root: Hash256, - prev_randao: Hash256, -) -> Arc> { - Arc::new(SignedExecutionPayloadBid { - message: ExecutionPayloadBid { - slot, - builder_index, - fee_recipient, - gas_limit, - value, - parent_block_root, - prev_randao, - ..ExecutionPayloadBid::default() - }, - signature: Signature::empty(), - }) -} - fn make_signed_preferences( proposal_slot: Slot, validator_index: u64,