Skip to content

Commit

Permalink
Fixes ibc e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
grarco committed May 28, 2024
1 parent 8cd7e79 commit cf18dc9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crates/tests/src/e2e/ibc_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -579,10 +579,13 @@ fn pgf_over_ibc_with_hermes() -> Result<()> {

#[test]
fn proposal_ibc_token_inflation() -> Result<()> {
const MASP_EPOCH_MULTIPLIER: u64 = 2;
let update_genesis =
|mut genesis: templates::All<templates::Unvalidated>, base_dir: &_| {
genesis.parameters.parameters.epochs_per_year =
epochs_per_year_from_min_duration(60);
genesis.parameters.parameters.masp_epoch_multiplier =
MASP_EPOCH_MULTIPLIER;
genesis.parameters.gov_params.min_proposal_grace_epochs = 3;
genesis.parameters.ibc_params.default_mint_limit =
Amount::max_signed();
Expand Down Expand Up @@ -629,7 +632,7 @@ fn proposal_ibc_token_inflation() -> Result<()> {
let _bg_hermes = hermes.background();

// wait the next epoch not to update the epoch during the IBC transfer
wait_epochs(&test_b, 1)?;
wait_epochs(&test_b, MASP_EPOCH_MULTIPLIER)?;

// Transfer 1 from Chain A to a z-address on Chain B
transfer(
Expand All @@ -648,7 +651,7 @@ fn proposal_ibc_token_inflation() -> Result<()> {
wait_for_packet_relay(&port_id_a, &channel_id_a, &test_a)?;

// wait the next epoch to dispense the rewrad
wait_epochs(&test_b, 1)?;
wait_epochs(&test_b, MASP_EPOCH_MULTIPLIER)?;

// Check balances
check_inflated_balance(&test_b)?;
Expand Down

0 comments on commit cf18dc9

Please sign in to comment.