Skip to content

Commit

Permalink
scarb format
Browse files Browse the repository at this point in the history
  • Loading branch information
baitcode committed Jan 14, 2025
1 parent f622f34 commit 56ec424
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/staker.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,6 @@ pub mod Staker {
fn get_cumulative_seconds_per_total_staked_at(
self: @ContractState, timestamp: u64,
) -> u256 {

if let Option::Some((log_record, idx)) = self
.staking_log
.find_in_change_log(timestamp) {
Expand Down
2 changes: 1 addition & 1 deletion src/staker_test.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ mod staker_staked_seconds_per_total_staked_calculation {
);
let z = staker.get_cumulative_seconds_per_total_staked_at(1);
assert_eq!(z.high, 0_u128);
assert_eq!(z.low, 0x80000000000000000000000000000000_u128);
assert_eq!(z.low, 0x80000000000000000000000000000000_u128);

assert_eq!(
staker.get_cumulative_seconds_per_total_staked_at(1),
Expand Down

0 comments on commit 56ec424

Please sign in to comment.