Skip to content

Commit

Permalink
Merge pull request #4 from open-web3-stack/polkadot-v1.1.0-parity-sca…
Browse files Browse the repository at this point in the history
…le-codec

use parity-scale-codec in macro main
  • Loading branch information
xlc authored Nov 15, 2023
2 parents a01c3d1 + ab134e8 commit ddb0b34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bencher/src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ macro_rules! main {

// get list of bench methods
let methods = $crate::bench_runner::run(&wasm[..], "available_bench_methods", &[]).unwrap();
let bench_methods = <Vec<String> as ::codec::Decode>::decode(&mut &methods[..]).unwrap();
let bench_methods = <Vec<String> as ::parity_scale_codec::Decode>::decode(&mut &methods[..]).unwrap();
println!("\nRunning {} benches\n", bench_methods.len());

let mut results: Vec<$crate::handler::BenchData> = vec![];
Expand Down

0 comments on commit ddb0b34

Please sign in to comment.