Skip to content

Commit

Permalink
fix: add a separate type for get msg proof request
Browse files Browse the repository at this point in the history
  • Loading branch information
vasyl-ivanchuk committed Nov 14, 2024
1 parent d02578f commit f242616
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/provider/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ pub struct L2ToL1LogProof {
pub root: B256,
}

type GetMsgProofRequest = (u64, Address, B256, Option<usize>);

#[derive(Debug, Serialize, Deserialize, Clone)]
#[serde(rename_all = "camelCase")]
pub struct Execute {
Expand Down Expand Up @@ -387,7 +389,7 @@ where
sender: Address,
msg: B256,
l2_log_position: Option<usize>,
) -> ProviderCall<T, (u64, Address, B256, Option<usize>), Option<L2ToL1LogProof>> {
) -> ProviderCall<T, GetMsgProofRequest, Option<L2ToL1LogProof>> {
self.client()
.request(
"zks_getL2ToL1MsgProof",
Expand Down

0 comments on commit f242616

Please sign in to comment.