mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 13:27:57 +00:00
Per-things trait. (#4904)
* Give perthigns the trait it always deserved.
* Make staking and phragmen work with the new generic per_thing
* Make everything work together 🔨
* a bit of cleanup
* Clean usage
* Bump.
* Fix name
* fix grumbles
* hopefully fix the ui test
* Some grumbles
* revamp traits again
* Better naming again.
This commit is contained in:
@@ -87,7 +87,7 @@ where
|
||||
P: TransactionPool + 'static,
|
||||
Block: traits::Block,
|
||||
AccountId: Clone + std::fmt::Display + Codec,
|
||||
Index: Clone + std::fmt::Display + Codec + Send + traits::SimpleArithmetic + 'static,
|
||||
Index: Clone + std::fmt::Display + Codec + Send + traits::AtLeast32Bit + 'static,
|
||||
{
|
||||
fn nonce(&self, account: AccountId) -> FutureResult<Index> {
|
||||
let get_nonce = || {
|
||||
@@ -141,7 +141,7 @@ where
|
||||
F: Fetcher<Block> + 'static,
|
||||
Block: traits::Block,
|
||||
AccountId: Clone + std::fmt::Display + Codec + Send + 'static,
|
||||
Index: Clone + std::fmt::Display + Codec + Send + traits::SimpleArithmetic + 'static,
|
||||
Index: Clone + std::fmt::Display + Codec + Send + traits::AtLeast32Bit + 'static,
|
||||
{
|
||||
fn nonce(&self, account: AccountId) -> FutureResult<Index> {
|
||||
let best_hash = self.client.info().best_hash;
|
||||
@@ -189,7 +189,7 @@ fn adjust_nonce<P, AccountId, Index>(
|
||||
) -> Index where
|
||||
P: TransactionPool,
|
||||
AccountId: Clone + std::fmt::Display + Encode,
|
||||
Index: Clone + std::fmt::Display + Encode + traits::SimpleArithmetic + 'static,
|
||||
Index: Clone + std::fmt::Display + Encode + traits::AtLeast32Bit + 'static,
|
||||
{
|
||||
log::debug!(target: "rpc", "State nonce for {}: {}", account, nonce);
|
||||
// Now we need to query the transaction pool
|
||||
|
||||
Reference in New Issue
Block a user