mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Fix returning config from LS, add extra c7 elements in getmethods (#713)
Co-authored-by: SpyCheese <mikle98@yandex.ru>
This commit is contained in:
parent
049ed0c737
commit
6b941dcceb
10 changed files with 111 additions and 32 deletions
|
@ -70,6 +70,7 @@ class SmartContract : public td::CntObject {
|
|||
td::optional<block::StdAddress> address;
|
||||
td::optional<std::shared_ptr<const block::Config>> config;
|
||||
td::optional<vm::Dictionary> libraries;
|
||||
td::optional<td::Ref<vm::Tuple>> prev_blocks_info;
|
||||
|
||||
Args() {
|
||||
}
|
||||
|
@ -124,7 +125,7 @@ class SmartContract : public td::CntObject {
|
|||
this->address = address;
|
||||
return std::move(*this);
|
||||
}
|
||||
Args&& set_config(std::shared_ptr<const block::Config>& config) {
|
||||
Args&& set_config(const std::shared_ptr<const block::Config>& config) {
|
||||
this->config = config;
|
||||
return std::move(*this);
|
||||
}
|
||||
|
@ -132,6 +133,14 @@ class SmartContract : public td::CntObject {
|
|||
this->libraries = libraries;
|
||||
return std::move(*this);
|
||||
}
|
||||
Args&& set_prev_blocks_info(td::Ref<vm::Tuple> tuple) {
|
||||
if (tuple.is_null()) {
|
||||
this->prev_blocks_info = {};
|
||||
} else {
|
||||
this->prev_blocks_info = std::move(tuple);
|
||||
}
|
||||
return std::move(*this);
|
||||
}
|
||||
Args&& set_vm_verbosity_level(int vm_log_verbosity_level) {
|
||||
this->vm_log_verbosity_level = vm_log_verbosity_level;
|
||||
return std::move(*this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue