Skip to content

Commit

Permalink
removed init for upgrade purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
ccorcoveanu committed Dec 5, 2022
1 parent a6a2690 commit 905a038
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions energy-integration/governance-v2/src/configurable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,7 @@ elrond_wasm::imports!();
#[elrond_wasm::module]
pub trait ConfigurablePropertiesModule: energy_query::EnergyQueryModule {
#[init]
fn init(
&self,
min_energy_for_propose: BigUint,
quorum: BigUint,
voting_delay_in_blocks: u64,
voting_period_in_blocks: u64,
lock_time_after_voting_ends_in_blocks: u64,
energy_factory_address: ManagedAddress,
) {
self.try_change_min_energy_for_propose(min_energy_for_propose);
self.try_change_quorum(quorum);
self.try_change_voting_delay_in_blocks(voting_delay_in_blocks);
self.try_change_voting_period_in_blocks(voting_period_in_blocks);
self.try_change_lock_time_after_voting_ends_in_blocks(
lock_time_after_voting_ends_in_blocks,
);
self.set_energy_factory_address(energy_factory_address);
}
fn init(&self) {}

// endpoints - these can only be called by the SC itself.
// i.e. only by proposing and executing an action with the SC as dest and the respective func name
Expand Down

0 comments on commit 905a038

Please sign in to comment.