mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 21:01:02 +00:00
Refactored Slicable (#324)
* Refactored Slicable * Docs * Wasm build * Wasm build * Renamed traits * Review nits * Renamed Slicable as well
This commit is contained in:
committed by
Gav Wood
parent
e1c90b573b
commit
1e1ddf61f2
@@ -43,7 +43,7 @@ use std::{
|
||||
sync::Arc,
|
||||
};
|
||||
|
||||
use codec::Slicable;
|
||||
use codec::{Decode, Encode};
|
||||
use extrinsic_pool::{Pool, Listener, txpool::{self, Readiness, scoring::{Change, Choice}}};
|
||||
use extrinsic_pool::api::{ExtrinsicPool, EventStream};
|
||||
use polkadot_api::PolkadotApi;
|
||||
@@ -75,7 +75,7 @@ impl VerifiedTransaction {
|
||||
|
||||
/// Convert to primitive unchecked extrinsic.
|
||||
pub fn primitive_extrinsic(&self) -> ::primitives::UncheckedExtrinsic {
|
||||
Slicable::decode(&mut self.as_transaction().encode().as_slice())
|
||||
Decode::decode(&mut self.as_transaction().encode().as_slice())
|
||||
.expect("UncheckedExtrinsic shares repr with Vec<u8>; qed")
|
||||
}
|
||||
|
||||
@@ -418,7 +418,7 @@ mod tests {
|
||||
use std::sync::{atomic::{self, AtomicBool}, Arc};
|
||||
use super::TransactionPool;
|
||||
use substrate_keyring::Keyring::{self, *};
|
||||
use codec::Slicable;
|
||||
use codec::{Decode, Encode};
|
||||
use polkadot_api::{PolkadotApi, BlockBuilder, Result};
|
||||
use primitives::{AccountId, AccountIndex, Block, BlockId, Hash, Index, SessionKey, Timestamp,
|
||||
UncheckedExtrinsic as FutureProofUncheckedExtrinsic};
|
||||
|
||||
Reference in New Issue
Block a user