use atomic for executor
use atomic for executor
*/
use crate::error::{SdkError, SdkErrorKind, SdkResult};
-use std::sync::Arc;
+use std::sync::{atomic::AtomicU64, Arc};
use ton_vm::executor::Engine;
use ton_block::{
Message,
@@ -122,13 +122,16 @@ pub(crate) fn call_executor(account: Account, msg: Message, config: &BlockchainC
{
let shard_acc = ShardAccount::with_params(account, UInt256::from([0;32]), 0).unwrap();
+ let block_lt = 1_000_000;
+ let lt = Arc::new(AtomicU64::new(block_lt + 1));
let mut executor = OrdinaryTransactionExecutor::new();
let transaction = executor.execute(
config,
msg,
&mut Some(shard_acc),
timestamp,
- 1,
+ block_lt,
+ lt.clone(),
false)?;
let mut fees = TransactionFees::default();
