mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Add debug enabled flag to transaction and TVM emulator (#662)
* Add debug enabled flag to transaction and TVM emulator * Set debug_enabled false in Emulator constructor
This commit is contained in:
parent
eabcb6a8e9
commit
f51eb2d747
9 changed files with 64 additions and 7 deletions
|
@ -65,6 +65,7 @@ class SmartContract : public td::CntObject {
|
|||
td::uint64 amount{0};
|
||||
td::uint64 balance{0};
|
||||
int vm_log_verbosity_level{0};
|
||||
bool debug_enabled{false};
|
||||
|
||||
td::optional<block::StdAddress> address;
|
||||
td::optional<std::shared_ptr<const block::Config>> config;
|
||||
|
@ -135,6 +136,10 @@ class SmartContract : public td::CntObject {
|
|||
this->vm_log_verbosity_level = vm_log_verbosity_level;
|
||||
return std::move(*this);
|
||||
}
|
||||
Args&& set_debug_enabled(bool debug_enabled) {
|
||||
this->debug_enabled = debug_enabled;
|
||||
return std::move(*this);
|
||||
}
|
||||
|
||||
td::Result<td::int32> get_method_id() const {
|
||||
if (!method_id) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue