Skip to content

Commit

Permalink
use the max possible numbers to cover corner case
Browse files Browse the repository at this point in the history
  • Loading branch information
quasisamurai committed Feb 22, 2024
1 parent 23119f0 commit 777b131
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/neutron-sdk/src/interchain_queries/v045/testing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1181,15 +1181,15 @@ fn test_delegations_reconstruct_overflow() {
delegations: vec![Delegation {
delegator_address: "osmo1yz54ncxj9csp7un3xled03q6thrrhy9cztkfzs".to_string(),
validator_address: "osmovaloper1r2u5q6t6w0wssrk6l66n3t2q3dw2uqny4gj2e3".to_string(),
shares: "9600000200000000000".to_string(),
shares: "340282366920938463463".to_string(),
}],
validators: vec![Validator {
operator_address: "osmovaloper1r2u5q6t6w0wssrk6l66n3t2q3dw2uqny4gj2e3".to_string(),
consensus_pubkey: None,
jailed: false,
status: 0,
tokens: "9670000200000000000".to_string(),
delegator_shares: "9670000200000000000".to_string(),
tokens: "340282366920938463463".to_string(),
delegator_shares: "340282366920938463463".to_string(),
description: None,
unbonding_height: 0,
unbonding_time: None,
Expand All @@ -1200,7 +1200,7 @@ fn test_delegations_reconstruct_overflow() {
delegations: vec![StdDelegation {
delegator: Addr::unchecked("osmo1yz54ncxj9csp7un3xled03q6thrrhy9cztkfzs"),
validator: "osmovaloper1r2u5q6t6w0wssrk6l66n3t2q3dw2uqny4gj2e3".to_string(),
amount: StdCoin::new(9600000200000000000u128, "stake"),
amount: StdCoin::new(340282366920938463463u128, "stake"),
}],
}),
}];
Expand Down

0 comments on commit 777b131

Please # to comment.