Skip to content

Commit

Permalink
fixup! Merge branch 'bat/feat/dry-run' (#2255)
Browse files Browse the repository at this point in the history
  • Loading branch information
tzemanovic committed Dec 22, 2023
1 parent 51d18cd commit b5f783e
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions apps/src/lib/node/ledger/shell/init_chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1163,10 +1163,10 @@ mod test {
genesis.transactions.bond = Some(vec![transactions::BondTx {
source: GenesisAddress::EstablishedAddress(albert_address.clone()),
validator: defaults::albert_address(),
amount: token::DenominatedAmount {
amount: token::Amount::from_uint(1, 6).unwrap(),
denom: 6.into(),
},
amount: token::DenominatedAmount::new(
token::Amount::from_uint(1, 6).unwrap(),
6.into(),
),
}]);

// bonds should fail since no balances have been initialized
Expand All @@ -1175,10 +1175,10 @@ mod test {
let expected = vec![Warning::FailedBond(
albert_address_str.clone(),
albert_address_str.clone(),
token::DenominatedAmount {
amount: token::Amount::from_uint(1, 6).unwrap(),
denom: 6.into(),
},
token::DenominatedAmount::new(
token::Amount::from_uint(1, 6).unwrap(),
6.into(),
),
"Insufficient source balance".to_string(),
)];
assert_eq!(expected, initializer.warnings);
Expand All @@ -1192,10 +1192,10 @@ mod test {
let expected = vec![Warning::FailedBond(
albert_address_str.clone(),
albert_address_str.clone(),
token::DenominatedAmount {
amount: token::Amount::from_uint(1, 6).unwrap(),
denom: 6.into(),
},
token::DenominatedAmount::new(
token::Amount::from_uint(1, 6).unwrap(),
6.into(),
),
format!(
"The given address {} is not a validator address",
albert_address_str
Expand Down

0 comments on commit b5f783e

Please sign in to comment.