Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanleecode committed Mar 28, 2024
1 parent d4018a6 commit 22e2a21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion signer/src/eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ impl Keypair {
mnemonic.to_seed(password.unwrap_or("")),
&derivation_path,
)
.unwrap();
.expect("valid private key");

Keypair::from_seed(private.to_bytes())
}
Expand Down Expand Up @@ -315,6 +315,7 @@ mod test {

#[test]
fn check_account_id(keypair in keypair()) {
// https://github.com/ethereumbook/ethereumbook/blob/develop/04keys-addresses.asciidoc#ethereum-addresses
let account_id = {
let uncompressed = keypair.0.0.public_key().serialize_uncompressed();
let hash = keccak(&uncompressed[1..]).0;
Expand Down
2 changes: 1 addition & 1 deletion signer/wasm-tests/tests/wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async fn wasm_ecdsa_signing_works() {

#[wasm_bindgen_test]
async fn wasm_eth_signing_works() {
let alice = eth::dev::alice();
let alice = eth::dev::alith();

// There's some non-determinism in the signing, so this ensures that
// the rand stuff is configured properly to run ok in wasm.
Expand Down

0 comments on commit 22e2a21

Please sign in to comment.