Skip to content

Commit

Permalink
fix: test wasn't modifying distribution root
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaRedHand committed Jan 6, 2025
1 parent 4618bce commit 900b8aa
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion crates/chainio/clients/elcontracts/src/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1152,7 +1152,7 @@ pub struct AllocationInfo {
#[cfg(test)]
mod tests {
use super::*;
use crate::test_utils::{build_el_chain_reader, OPERATOR_ADDRESS};
use crate::test_utils::{build_el_chain_reader, new_claim, OPERATOR_ADDRESS};
use alloy::providers::Provider;
use alloy::{eips::eip1898::BlockNumberOrTag::Number, rpc::types::BlockTransactionsKind};
use alloy_primitives::{address, keccak256, Address, FixedBytes, U256};
Expand Down Expand Up @@ -1263,6 +1263,15 @@ mod tests {
let (_container, http_endpoint, _ws_endpoint) = start_anvil_container().await;
let el_chain_reader = build_el_chain_reader(http_endpoint.clone()).await;

let distribution_roots_length_ret = el_chain_reader
.get_distribution_roots_length()
.await
.unwrap();

assert_eq!(distribution_roots_length_ret, U256::from(0));

_ = new_claim(&http_endpoint).await;

let distribution_roots_length_ret = el_chain_reader
.get_distribution_roots_length()
.await
Expand Down

0 comments on commit 900b8aa

Please sign in to comment.