mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 22:11:02 +00:00
Companion to "Updating scale to v3" (#4958)
* Updating dependencies * Adapting code to scale v3 * Upgrade bitvec to 1.0.0 * Fix bitvec arithmetics * Update Cargo.lock * Update sp-io * Fixing the build * Yanked scale-info 2.0.0 Co-authored-by: Bastian Köcher <info@kchr.de>
This commit is contained in:
@@ -6,9 +6,9 @@ description = "Examples of xcm-simulator usage."
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "2.0.0" }
|
||||
codec = { package = "parity-scale-codec", version = "3.0.0" }
|
||||
honggfuzz = "0.5.54"
|
||||
scale-info = { version = "1.0", features = ["derive"] }
|
||||
scale-info = { version = "2.0.0", features = ["derive"] }
|
||||
|
||||
frame-system = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||
frame-support = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||
|
||||
@@ -104,9 +104,9 @@ pub fn relay_ext() -> sp_io::TestExternalities {
|
||||
pub type RelayChainPalletXcm = pallet_xcm::Pallet<relay_chain::Runtime>;
|
||||
pub type ParachainPalletXcm = pallet_xcm::Pallet<parachain::Runtime>;
|
||||
|
||||
fn run_one_input(data: &[u8]) {
|
||||
fn run_one_input(mut data: &[u8]) {
|
||||
MockNet::reset();
|
||||
if let Ok(m) = Xcm::decode_all_with_depth_limit(MAX_XCM_DECODE_DEPTH, data) {
|
||||
if let Ok(m) = Xcm::decode_all_with_depth_limit(MAX_XCM_DECODE_DEPTH, &mut data) {
|
||||
#[cfg(not(fuzzing))]
|
||||
{
|
||||
println!("Executing message {:?}", m);
|
||||
|
||||
Reference in New Issue
Block a user