Skip to content

Commit

Permalink
breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Mar 16, 2023
1 parent dbf404c commit 9c16b4f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion anvil/tests/it/ganache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fn ganache_wallet2() -> LocalWallet {

fn wallet(key_str: &str) -> LocalWallet {
let key_hex = hex::decode(key_str).expect("could not parse as hex");
let key = SecretKey::from_be_bytes(&key_hex).expect("did not get private key");
let key = SecretKey::from_bytes(key_hex.as_slice().into()).expect("did not get private key");
key.into()
}

Expand Down
2 changes: 1 addition & 1 deletion anvil/tests/it/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ async fn can_respect_nonces() {

// ensure the listener for ready transactions times out
let mut listener = api.new_ready_transactions();
let res = timeout(Duration::from_millis(1500), async move { listener.next().await }).await;
let res = timeout(Duration::from_millis(1500), listener.next()).await;
res.unwrap_err();

// send with the actual nonce which is mined immediately
Expand Down
4 changes: 2 additions & 2 deletions chisel/src/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1304,7 +1304,7 @@ mod tests {
]
};

let ref mut source = source();
let source = &mut source();

let array_expressions: &[(&str, ParamType)] = &[
("[1, 2, 3]", fixed_array(ParamType::Uint(256), 3)),
Expand Down Expand Up @@ -1524,7 +1524,7 @@ mod tests {
let input = input.trim_end().trim_end_matches(';').to_string() + ";";
let (mut _s, _) = s.clone_with_new_line(input).unwrap();
*s = _s.clone();
let ref mut s = _s;
let s = &mut _s;

if let Err(e) = s.parse() {
for err in e {
Expand Down

0 comments on commit 9c16b4f

Please sign in to comment.