Skip to content

Commit

Permalink
TODO fix __validate__
Browse files Browse the repository at this point in the history
  • Loading branch information
ermvrs committed Dec 10, 2024
1 parent 55f9cb1 commit 36c4140
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/accounts/base.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ pub mod RosettaAccount {
r: r,
s: s,
};

let eth_address: EthAddress = self.ethereum_address.read();

is_valid_eth_signature(hash, eth_address, rosettanet_signature)
Expand Down
2 changes: 1 addition & 1 deletion src/accounts/utils.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ pub const CHAIN_ID: u64 = 11155111; // TODO: Correct it

#[derive(Copy, Drop, Serde)]
pub struct RosettanetSignature {
pub v: u32, // 27 or 28
pub r: u256,
pub s: u256,
pub v: u32, // 27 or 28
}

#[derive(Copy, Drop, Clone, Serde)]
Expand Down

0 comments on commit 36c4140

Please sign in to comment.