diff --git a/Cargo.toml b/Cargo.toml index efb44d96ed58cc9219aab4555ee455e0933340ab..9487a8e381151ec5af4ead643ab05f5c37244132 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,7 +27,7 @@ sp-runtime = { git = "https://github.com/duniter/duniter-polkadot-sdk.git", bran # crates.io dependencies anyhow = "^1.0" clap = { version = "^4.5.19", features = ["derive"] } -codec = { package = "parity-scale-codec", version = "^3.6.12" } +parity-scale-codec = { version = "^3.6.12" } env_logger = "^0.10" futures = "^0.3.30" graphql_client = { version = "^0.13.0", features = ["reqwest-rustls"] } diff --git a/src/commands/collective.rs b/src/commands/collective.rs index 1481c797a8508f9f2be8b76e0ae31dd9ef558742..2ded107eded7a30d7137fef8a5e27d76f75b0e07 100644 --- a/src/commands/collective.rs +++ b/src/commands/collective.rs @@ -137,7 +137,7 @@ pub async fn technical_committee_vote( /// can be generated with `subxt explore` for example pub async fn technical_committee_propose(data: &Data, proposal: &str) -> Result<(), subxt::Error> { let raw_call = hex::decode(proposal).expect("invalid hex"); - let call = codec::decode_from_bytes(raw_call.into()).expect("invalid call"); + let call = parity_scale_codec::decode_from_bytes(raw_call.into()).expect("invalid call"); let payload = runtime::tx().technical_committee().propose(5, call, 100); submit_call_and_look_event::< diff --git a/src/main.rs b/src/main.rs index ba4857a10b12c23220a2bade7f77aba40d20de66..9252d09a566afeeafb01201af8352652ccc01b36 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,11 +10,11 @@ mod utils; use anyhow::anyhow; use clap::builder::OsStr; use clap::Parser; -use codec::Encode; use colored::Colorize; use data::*; use display::DisplayEvent; use keys::*; +use parity_scale_codec::Encode; use runtime_config::*; use serde::{Deserialize, Serialize}; use std::str::FromStr; diff --git a/src/runtime_config.rs b/src/runtime_config.rs index 2ce602d16afbfc4610659ab358b56cbf36266882..e7b915a3a6cedbc907dc5168857e9b26f8b4cfd1 100644 --- a/src/runtime_config.rs +++ b/src/runtime_config.rs @@ -32,7 +32,7 @@ impl subxt::config::Config for Runtime { } // Tip for transaction fee -#[derive(Copy, Clone, Debug, Default, codec::Encode)] +#[derive(Copy, Clone, Debug, Default, parity_scale_codec::Encode)] pub struct Tip { #[codec(compact)] tip: u64,