Skip to content

Commit

Permalink
Moved variables
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Baltariu <[email protected]>
  • Loading branch information
andreiblt1304 committed Nov 21, 2024
1 parent 35b679c commit ec726c5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sovereign-forge/src/phases.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,15 @@ pub trait PhasesModule:
min_stake: BigUint,
additional_stake_required: MultiValueEncoded<StakeMultiArg<Self::Api>>,
) {
let blockchain_api = self.blockchain();
let caller = blockchain_api.get_caller();
let caller_shard_id = blockchain_api.get_shard_of_address(&caller);

self.require_setup_complete();

let call_value = self.call_value().egld_value();
self.require_correct_deploy_cost(call_value.deref());

let chain_id = self.generate_chain_id();
let blockchain_api = self.blockchain();
let caller = blockchain_api.get_caller();
let caller_shard_id = blockchain_api.get_shard_of_address(&caller);

let chain_factories_mapper = self.chain_factories(caller_shard_id);
require!(
Expand Down

0 comments on commit ec726c5

Please sign in to comment.