mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-20 22:05:42 +00:00
update most of the dependencies (#1946)
* update tiny-keccak to 0.2 * update deps except bitvec and shared_memory * fix some warning after futures upgrade * remove useless package rename caused by bug in cargo-upgrade * revert parity-util-mem * * remove unused import * cargo update * remove all renames on parity-scale-codec * remove the leftovers * remove unused dep
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
|
||||
use sp_std::vec::Vec;
|
||||
|
||||
use codec::{Encode, Decode, CompactAs};
|
||||
use parity_scale_codec::{Encode, Decode, CompactAs};
|
||||
use sp_core::{RuntimeDebug, TypeId};
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
@@ -147,12 +147,12 @@ pub trait AccountIdConversion<AccountId>: Sized {
|
||||
// TODO: Remove all of this, move sp-runtime::AccountIdConversion to own crate and and use that.
|
||||
// #360
|
||||
struct TrailingZeroInput<'a>(&'a [u8]);
|
||||
impl<'a> codec::Input for TrailingZeroInput<'a> {
|
||||
fn remaining_len(&mut self) -> Result<Option<usize>, codec::Error> {
|
||||
impl<'a> parity_scale_codec::Input for TrailingZeroInput<'a> {
|
||||
fn remaining_len(&mut self) -> Result<Option<usize>, parity_scale_codec::Error> {
|
||||
Ok(None)
|
||||
}
|
||||
|
||||
fn read(&mut self, into: &mut [u8]) -> Result<(), codec::Error> {
|
||||
fn read(&mut self, into: &mut [u8]) -> Result<(), parity_scale_codec::Error> {
|
||||
let len = into.len().min(self.0.len());
|
||||
into[..len].copy_from_slice(&self.0[..len]);
|
||||
for i in &mut into[len..] {
|
||||
|
||||
@@ -26,7 +26,7 @@ pub unsafe fn load_params(params: *const u8, len: usize)
|
||||
{
|
||||
let mut slice = sp_std::slice::from_raw_parts(params, len);
|
||||
|
||||
codec::Decode::decode(&mut slice).expect("Invalid input data")
|
||||
parity_scale_codec::Decode::decode(&mut slice).expect("Invalid input data")
|
||||
}
|
||||
|
||||
/// Allocate the validation result in memory, getting the return-pointer back.
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
use std::{any::{TypeId, Any}, path::PathBuf};
|
||||
use crate::primitives::{ValidationParams, ValidationResult};
|
||||
use codec::{Decode, Encode};
|
||||
use parity_scale_codec::{Decode, Encode};
|
||||
use sp_core::{storage::{ChildInfo, TrackedStorageKey}, traits::{CallInWasm, SpawnNamed}};
|
||||
use sp_externalities::Extensions;
|
||||
use sp_wasm_interface::HostFunctions as _;
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#![cfg(not(any(target_os = "android", target_os = "unknown")))]
|
||||
|
||||
use std::{process, env, sync::Arc, sync::atomic, path::PathBuf};
|
||||
use codec::{Decode, Encode};
|
||||
use parity_scale_codec::{Decode, Encode};
|
||||
use crate::primitives::{ValidationParams, ValidationResult};
|
||||
use super::{
|
||||
validate_candidate_internal, ValidationError, InvalidCandidate, InternalError,
|
||||
|
||||
Reference in New Issue
Block a user