1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

integrating the existing state of TON Storage / TON Payments / CPS Fift development branches

This commit is contained in:
ton 2020-05-27 22:10:46 +04:00
parent 040df63c98
commit 4e2624459b
153 changed files with 10760 additions and 1695 deletions

View file

@ -192,17 +192,20 @@ td::Result<typename T::ReturnType> fetch_result(const td::BufferSlice &message,
template <class Type, class... Args>
td::BufferSlice create_serialize_tl_object(Args &&... args) {
return serialize_tl_object(create_tl_object<Type>(std::forward<Args>(args)...), true);
Type object(std::forward<Args>(args)...);
return serialize_tl_object(&object, true);
}
template <class Type, class... Args>
td::BufferSlice create_serialize_tl_object_suffix(td::Slice suffix, Args &&... args) {
return serialize_tl_object(create_tl_object<Type>(std::forward<Args>(args)...), true, suffix);
Type object(std::forward<Args>(args)...);
return serialize_tl_object(&object, true, suffix);
}
template <class Type, class... Args>
auto create_hash_tl_object(Args &&... args) {
return get_tl_object_sha_bits256(create_tl_object<Type>(std::forward<Args>(args)...));
Type object(std::forward<Args>(args)...);
return get_tl_object_sha_bits256(&object);
}
} // namespace ton