mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
emulator fixes, add basic tests (#1042)
This commit is contained in:
parent
0bf7febf9f
commit
c15d878fee
9 changed files with 352 additions and 18 deletions
|
@ -1971,7 +1971,7 @@ class RunEmulator : public TonlibQueryActor {
|
|||
check(r_config.move_as_error());
|
||||
return;
|
||||
}
|
||||
std::unique_ptr<block::ConfigInfo> config = r_config.move_as_ok();
|
||||
std::shared_ptr<block::ConfigInfo> config = r_config.move_as_ok();
|
||||
|
||||
auto r_shard_account = account_state_->to_shardAccountCellSlice();
|
||||
if (r_shard_account.is_error()) {
|
||||
|
@ -1995,7 +1995,7 @@ class RunEmulator : public TonlibQueryActor {
|
|||
return;
|
||||
}
|
||||
vm::Dictionary libraries = global_libraries_;
|
||||
emulator::TransactionEmulator trans_emulator(std::move(*config));
|
||||
emulator::TransactionEmulator trans_emulator(config);
|
||||
trans_emulator.set_prev_blocks_info(prev_blocks_info.move_as_ok());
|
||||
trans_emulator.set_libs(std::move(libraries));
|
||||
trans_emulator.set_rand_seed(block_id_.rand_seed);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue