Skip to content

Commit

Permalink
fix chain id
Browse files Browse the repository at this point in the history
  • Loading branch information
tcoratger committed Oct 11, 2024
1 parent 4da7cd9 commit 4484e4e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/tests/eth_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,8 @@ async fn test_chain_id(#[future] katana: Katana, _setup: ()) {
let chain_id = eth_provider.chain_id().await.unwrap().unwrap_or_default();

// Then
// ASCII code for "test" is 0x74657374
// Since kaka_test > u32::MAX, we should return the last 4 bytes of the chain_id.
assert_eq!(chain_id, U64::from(0x7465_7374_u64));
// Chain ID should correspond to "kaka_test"
assert_eq!(chain_id, U64::from_str_radix("b615f74ebad2c", 16).unwrap());
}

#[rstest]
Expand Down

0 comments on commit 4484e4e

Please sign in to comment.