10 #include "scale/types.hpp" 15 std::shared_ptr<runtime::TransactionPaymentApi> api,
16 std::shared_ptr<const blockchain::BlockTree> block_tree)
17 : api_(
std::move(api)), block_tree_{std::move(block_tree)} {
27 return api_->query_info(at.value(), extrinsic, len);
29 return api_->query_info(
block_tree_->deepestLeaf().hash, extrinsic, len);
std::shared_ptr< const blockchain::BlockTree > block_tree_
std::optional< std::reference_wrapper< const common::Hash256 >> OptionalHashRef
std::shared_ptr< runtime::TransactionPaymentApi > api_
Extrinsic class represents extrinsic.
PaymentApiImpl(std::shared_ptr< runtime::TransactionPaymentApi > api, std::shared_ptr< const blockchain::BlockTree > block_tree)
outcome::result< primitives::RuntimeDispatchInfo > queryInfo(const primitives::Extrinsic &extrinsic, uint32_t len, OptionalHashRef at) const override