Skip to content

Commit 7eed4a6

Browse files
committed
Rename update.rs
1 parent b8253e6 commit 7eed4a6

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

core/src/cli_commands.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ use ergo_lib::ergotree_ir::chain::address::NetworkPrefix;
22

33
pub mod bootstrap;
44
pub mod extract_reward_tokens;
5+
pub mod prepare_update;
56
pub mod print_reward_tokens;
67
pub mod transfer_oracle_token;
7-
pub mod update;
88
pub mod update_pool;
99
pub mod vote_update_pool;
1010

File renamed without changes.

core/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ fn main() {
279279
}
280280
Command::PrepareUpdate { update_file } => {
281281
assert_wallet_unlocked(&new_node_interface());
282-
if let Err(e) = cli_commands::update::prepare_update(update_file) {
282+
if let Err(e) = cli_commands::prepare_update::prepare_update(update_file) {
283283
error!("Fatal update error : {}", e);
284284
std::process::exit(exitcode::SOFTWARE);
285285
}

core/src/pool_commands/test_utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ use crate::contracts::pool::PoolContractInputs;
3737
use crate::contracts::pool::PoolContractParameters;
3838
use crate::node_interface::SignTransaction;
3939
use crate::oracle_config::TokenIds;
40-
use crate::oracle_state::BallotBoxesSource;
4140
use crate::oracle_state::LocalBallotBoxSource;
4241
use crate::oracle_state::UpdateBoxSource;
42+
use crate::oracle_state::VoteBallotBoxesSource;
4343
use crate::oracle_state::{LocalDatapointBoxSource, PoolBoxSource, StageError};
4444

4545
use super::*;
@@ -81,7 +81,7 @@ pub struct BallotBoxesMock {
8181
pub ballot_boxes: Vec<VoteBallotBoxWrapper>,
8282
}
8383

84-
impl BallotBoxesSource for BallotBoxesMock {
84+
impl VoteBallotBoxesSource for BallotBoxesMock {
8585
fn get_ballot_boxes(&self) -> std::result::Result<Vec<VoteBallotBoxWrapper>, StageError> {
8686
Ok(self.ballot_boxes.clone())
8787
}

core/src/serde.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use serde::{Deserialize, Serialize};
1212
use crate::{
1313
cli_commands::{
1414
bootstrap::{Addresses, BootstrapConfig, TokensToMint},
15-
update::{UpdateBootstrapConfig, UpdateTokensToMint},
15+
prepare_update::{UpdateBootstrapConfig, UpdateTokensToMint},
1616
},
1717
contracts::{
1818
ballot::BallotContractParameters, oracle::OracleContractParameters,

0 commit comments

Comments
 (0)