mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-22 18:39:55 +00:00
Transaction payment runtime apis: query call info and fee details (#5871)
This commit is contained in:
1 parent
fae75b9382
commit
219fd5a3ed
5 files changed
+55
No files matched your search
@@ -1065,6 +1065,17 @@ sp_api::impl_runtime_apis! {
|
||||
}
|
||||
}
|
||||
|
||||
impl pallet_transaction_payment_rpc_runtime_api::TransactionPaymentCallApi<Block, Balance, Call>
|
||||
for Runtime
|
||||
{
|
||||
fn query_call_info(call: Call, len: u32) -> RuntimeDispatchInfo<Balance> {
|
||||
TransactionPayment::query_call_info(call, len)
|
||||
}
|
||||
fn query_call_fee_details(call: Call, len: u32) -> FeeDetails<Balance> {
|
||||
TransactionPayment::query_call_fee_details(call, len)
|
||||
}
|
||||
}
|
||||
|
||||
impl crate::GetLastTimestamp<Block> for Runtime {
|
||||
fn get_last_timestamp() -> u64 {
|
||||
Timestamp::now()
|
||||
|
||||
Reference in new issue
Block a user