Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
brentstone committed Jul 2, 2024
1 parent 22668c9 commit f6a391c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
1 change: 0 additions & 1 deletion crates/tests/src/e2e/ibc_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2044,7 +2044,6 @@ fn propose_funding(
let start_epoch = (epoch.0 + 6) / 3 * 3;
let proposal_json_path = prepare_proposal_data(
test_a.test_dir.path(),
0,
albert,
pgf_funding,
start_epoch,
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/src/e2e/ledger_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1406,7 +1406,6 @@ fn test_epoch_sleep() -> Result<()> {
/// This can be submitted with "init-proposal" command.
pub fn prepare_proposal_data(
test_dir: impl AsRef<std::path::Path>,
id: u64,
source: Address,
data: impl serde::Serialize,
start_epoch: u64,
Expand Down Expand Up @@ -1951,7 +1950,6 @@ fn proposal_change_shielded_reward() -> Result<()> {
let albert = find_address(&test, ALBERT)?;
let valid_proposal_json_path = prepare_proposal_data(
test.test_dir.path(),
0,
albert,
TestWasms::TxProposalMaspRewards.read_bytes(),
12,
Expand Down
14 changes: 3 additions & 11 deletions crates/tests/src/integration/ledger_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,6 @@ fn proposal_submission() -> Result<()> {
let albert = defaults::albert_address();
let valid_proposal_json_path = prepare_proposal_data(
node.test_dir.path(),
0,
albert.clone(),
TestWasms::TxProposalCode.read_bytes(),
12,
Expand Down Expand Up @@ -770,7 +769,6 @@ fn proposal_submission() -> Result<()> {
// proposal is invalid due to voting_end_epoch - voting_start_epoch < 3
let invalid_proposal_json = prepare_proposal_data(
node.test_dir.path(),
1,
albert,
TestWasms::TxProposalCode.read_bytes(),
1,
Expand Down Expand Up @@ -1039,13 +1037,8 @@ fn pgf_governance_proposal() -> Result<()> {
remove: vec![],
};

let valid_proposal_json_path = prepare_proposal_data(
node.test_dir.path(),
0,
albert,
pgf_stewards,
12,
);
let valid_proposal_json_path =
prepare_proposal_data(node.test_dir.path(), albert, pgf_stewards, 12);
let submit_proposal_args = vec![
"init-proposal",
"--pgf-stewards",
Expand Down Expand Up @@ -1220,7 +1213,7 @@ fn pgf_governance_proposal() -> Result<()> {
})],
};
let valid_proposal_json_path =
prepare_proposal_data(node.test_dir.path(), 1, albert, pgf_funding, 36);
prepare_proposal_data(node.test_dir.path(), albert, pgf_funding, 36);

let submit_proposal_args = vec![
"init-proposal",
Expand Down Expand Up @@ -1363,7 +1356,6 @@ fn implicit_account_reveal_pk() -> Result<()> {
let author = find_address(&node, source).unwrap();
let valid_proposal_json_path = prepare_proposal_data(
node.test_dir.path(),
0,
author,
TestWasms::TxProposalCode.read_bytes(),
12,
Expand Down

0 comments on commit f6a391c

Please sign in to comment.