mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Various changes after merge
This commit is contained in:
parent
2ea17ec03b
commit
29851c38ef
17 changed files with 93 additions and 56 deletions
|
|
@ -114,6 +114,13 @@ struct QueryTraits<ton::lite_api::liteServer_getAccountState> {
|
|||
}
|
||||
};
|
||||
|
||||
template<>
|
||||
struct QueryTraits<ton::lite_api::liteServer_getAccountStatePrunned> {
|
||||
static ton::ShardIdFull get_shard(const ton::lite_api::liteServer_getAccountStatePrunned& q) {
|
||||
return ton::AccountIdPrefixFull(q.account_->workchain_, q.account_->id_.bits().get_uint(64)).as_leaf_shard();
|
||||
}
|
||||
};
|
||||
|
||||
template<>
|
||||
struct QueryTraits<ton::lite_api::liteServer_runSmcMethod> {
|
||||
static ton::ShardIdFull get_shard(const ton::lite_api::liteServer_runSmcMethod& q) {
|
||||
|
|
@ -198,5 +205,12 @@ struct QueryTraits<ton::lite_api::liteServer_getLibraries> {
|
|||
}
|
||||
};
|
||||
|
||||
template<>
|
||||
struct QueryTraits<ton::lite_api::liteServer_getShardBlockProof> {
|
||||
static ton::ShardIdFull get_shard(const ton::lite_api::liteServer_getShardBlockProof& q) {
|
||||
return ton::ShardIdFull(q.id_->workchain_, q.id_->shard_);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
} // namespace tonlib
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue