Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
SilkovAlexander committed Feb 28, 2024
1 parent aae9d6d commit 393ead8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
24 changes: 14 additions & 10 deletions src/transaction_executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ use std::collections::LinkedList;
use std::convert::TryInto;
use std::sync::atomic::AtomicU64;
use std::sync::atomic::Ordering;
use std::sync::{Arc, Mutex};
use std::sync::Arc;
use std::sync::Mutex;

use tvm_block::AccStatusChange;
use tvm_block::Account;
Expand Down Expand Up @@ -481,15 +482,18 @@ pub trait TransactionExecutor {
signature_id: params.signature_id,
},
)
.set_smart_contract_info(smc_info)?
.set_stack(stack)
.set_data(data)?
.set_libraries(libs)
.set_gas(gas)
.set_debug(params.debug)
.set_block_related_flags(params.vm_execution_is_block_related.clone(), params.block_collation_was_finished.clone())
.create();

.set_smart_contract_info(smc_info)?
.set_stack(stack)
.set_data(data)?
.set_libraries(libs)
.set_gas(gas)
.set_debug(params.debug)
.set_block_related_flags(
params.vm_execution_is_block_related.clone(),
params.block_collation_was_finished.clone(),
)
.create();

if let Some(modifiers) = params.behavior_modifiers.clone() {
vm.modify_behavior(modifiers);
}
Expand Down
5 changes: 3 additions & 2 deletions src/vmsetup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
// See the License for the specific TON DEV software governing permissions and
// limitations under the License.

use std::sync::{Arc, Mutex};
use std::sync::Arc;
use std::sync::Mutex;

use tvm_block::GlobalCapabilities;
use tvm_types::Cell;
use tvm_types::HashmapE;
Expand Down Expand Up @@ -46,7 +48,6 @@ pub struct VMSetup {
}

impl VMSetup {

pub fn set_block_related_flags(
mut self,
vm_execution_is_block_related: Arc<Mutex<bool>>,
Expand Down

0 comments on commit 393ead8

Please sign in to comment.