Skip to content

Commit e2fb03a

Browse files
authored
chore: ord bounds to relay_rpc params (#6)
* add ord bounds to rpc structures * fix clippy
1 parent b9314b8 commit e2fb03a

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

relay_rpc/src/auth/cacao/signature/eip191.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pub const EIP191: &str = "eip191";
1010
pub fn eip191_bytes(message: &str) -> Vec<u8> {
1111
format!(
1212
"\u{0019}Ethereum Signed Message:\n{}{}",
13-
message.as_bytes().len(),
13+
message.len(),
1414
message
1515
)
1616
.into()

relay_rpc/src/macros.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ macro_rules! new_type {
1111
Hash,
1212
Clone,
1313
PartialEq,
14+
PartialOrd,
15+
Ord,
1416
Eq,
1517
::serde::Serialize,
1618
::serde::Deserialize,

0 commit comments

Comments
 (0)