Skip to content
Snippets Groups Projects
Commit f09d0042 authored by Hugo Trentesaux's avatar Hugo Trentesaux
Browse files

do not rename codec package

parent 8f67e583
No related branches found
No related tags found
No related merge requests found
......@@ -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"] }
......
......@@ -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::<
......
......@@ -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;
......
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment