Skip to content

Commit 3774de2

Browse files
committed
clippy fixes
1 parent 20bbcb2 commit 3774de2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

crates/tests/src/test_rollkit_engine_api.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use common::{create_test_transactions, TEST_TO_ADDRESS};
2121

2222
/// Rollkit Engine API payload attributes
2323
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
24-
pub struct RollkitEnginePayloadAttributes {
24+
pub(crate) struct RollkitEnginePayloadAttributes {
2525
/// Standard Ethereum payload attributes
2626
#[serde(flatten)]
2727
pub inner: alloy_rpc_types::engine::PayloadAttributes,
@@ -36,15 +36,15 @@ const DEFAULT_RPC_URL: &str = "http://127.0.0.1:8545";
3636

3737
/// Test node manager for Engine API testing
3838
#[derive(Debug)]
39-
pub struct EngineApiTestNode {
39+
pub(crate) struct EngineApiTestNode {
4040
pub rpc_url: String,
4141
pub client: reqwest::Client,
4242
pub mock_mode: bool,
4343
}
4444

4545
impl EngineApiTestNode {
4646
/// Creates a new test node and determines if it should use mock mode
47-
pub async fn new() -> Result<Self> {
47+
pub(crate) async fn new() -> Result<Self> {
4848
let client = reqwest::Client::new();
4949
let rpc_url = DEFAULT_RPC_URL.to_string();
5050

@@ -88,7 +88,7 @@ impl EngineApiTestNode {
8888
}
8989

9090
/// Makes an Engine API RPC call
91-
pub async fn engine_rpc_call(
91+
pub(crate) async fn engine_rpc_call(
9292
&self,
9393
method: &str,
9494
params: serde_json::Value,
@@ -165,7 +165,7 @@ impl EngineApiTestNode {
165165
}
166166

167167
/// Calls `engine_forkchoiceUpdatedV3` with payload attributes
168-
pub async fn fork_choice_updated_v3(
168+
pub(crate) async fn fork_choice_updated_v3(
169169
&self,
170170
forkchoice_state: ForkchoiceState,
171171
payload_attributes: Option<RollkitEnginePayloadAttributes>,
@@ -181,7 +181,7 @@ impl EngineApiTestNode {
181181
}
182182

183183
/// Gets a payload by ID
184-
pub async fn get_payload_v3(&self, payload_id: PayloadId) -> Result<serde_json::Value> {
184+
pub(crate) async fn get_payload_v3(&self, payload_id: PayloadId) -> Result<serde_json::Value> {
185185
let params = json!([payload_id]);
186186
self.engine_rpc_call("engine_getPayloadV3", params).await
187187
}

0 commit comments

Comments
 (0)