From 07950b700fe01337d80f189c8fd609752e531671 Mon Sep 17 00:00:00 2001 From: Andrei Baltariu Date: Fri, 14 Jun 2024 09:50:58 +0300 Subject: [PATCH] Removed unnecessary arguments and logic from init --- esdt-safe/src/lib.rs | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/esdt-safe/src/lib.rs b/esdt-safe/src/lib.rs index fc90aa37..3be80ccd 100644 --- a/esdt-safe/src/lib.rs +++ b/esdt-safe/src/lib.rs @@ -3,13 +3,6 @@ multiversx_sc::imports!(); multiversx_sc::derive_imports!(); -use transaction::GasLimit; -use tx_batch_module::FIRST_BATCH_ID; - -const DEFAULT_MAX_TX_BATCH_SIZE: usize = 10; -const DEFAULT_MAX_TX_BATCH_BLOCK_DURATION: u64 = 100; // ~10 minutes -const DEFAULT_MAX_USER_TX_GAS_LIMIT: GasLimit = 300_000_000; - pub mod from_sovereign; pub mod to_sovereign; pub mod esdt_safe_proxy; @@ -37,32 +30,9 @@ pub trait EsdtSafe: fn init( &self, is_sovereign_chain: bool, - min_valid_signers: u32, - initiator_address: ManagedAddress, - signers: MultiValueEncoded, ) { self.is_sovereign_chain().set(is_sovereign_chain); - self.max_tx_batch_size().set(DEFAULT_MAX_TX_BATCH_SIZE); - self.max_tx_batch_block_duration() - .set(DEFAULT_MAX_TX_BATCH_BLOCK_DURATION); - self.max_user_tx_gas_limit() - .set(DEFAULT_MAX_USER_TX_GAS_LIMIT); - - // batch ID 0 is considered invalid - self.first_batch_id().set(FIRST_BATCH_ID); - self.last_batch_id().set(FIRST_BATCH_ID); - self.next_batch_id().set(FIRST_BATCH_ID); - - self.set_min_valid_signers(min_valid_signers); - self.add_signers(signers); - - self.initiator_address().set(initiator_address); - self.set_paused(true); - - // Currently, false is the same as 0, which is the default value. - // If this ever changes, uncomment this line. - // self.setup_phase_complete.set(false); } #[only_owner]