Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

Commit 94f0eae

Browse files
committed
refactor: change to u64 chain id
1 parent bb345ae commit 94f0eae

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ members = [ "crates/*" ]
33
resolver = "2"
44

55
[workspace.package]
6-
version = "0.2.3"
6+
version = "0.3.0"
77
edition = "2021"
88
rust-version = "1.76"
99
authors = ["Zenith Contributors"]

crates/types/src/orders/agg.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::collections::HashMap;
77
pub struct AggregateOrders {
88
/// Outputs to be transferred to the user. These may be on the rollup or
99
/// the host or potentially elsewhere in the future.
10-
pub outputs: HashMap<(u32, Address), HashMap<Address, U256>>,
10+
pub outputs: HashMap<(u64, Address), HashMap<Address, U256>>,
1111
/// Inputs to be transferred to the filler. These are always on the
1212
/// rollup.
1313
pub inputs: HashMap<Address, U256>,
@@ -29,7 +29,7 @@ impl AggregateOrders {
2929
fn ingest_output(&mut self, output: &RollupOrders::Output) {
3030
let entry = self
3131
.outputs
32-
.entry((output.chain_id(), output.token))
32+
.entry((output.chain_id() as u64, output.token))
3333
.or_default()
3434
.entry(output.recipient)
3535
.or_default();

crates/types/src/resp.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ use alloy_primitives::{Address, Signature, SignatureError};
33
use serde::{Deserialize, Serialize};
44

55
/// A signature response from a [`RequestSigner`].
6+
///
7+
/// [`RequestSigner`]: crate::RequestSigner
68
#[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq, Eq)]
79
#[serde(rename_all = "camelCase")]
810
pub struct SignResponse {

0 commit comments

Comments
 (0)