Skip to content

Commit 035a459

Browse files
Merge pull request #2258 from multiversx/human-2024
multiversx-sc-codec-human-readable edition 2024
2 parents 4fb95a5 + ad203d6 commit 035a459

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

data/human-readable/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "multiversx-sc-codec-human-readable"
33
version = "0.1.0"
4-
edition = "2018"
4+
edition = "2024"
55
publish = false
66

77
authors = ["MultiversX <[email protected]>"]

data/human-readable/src/decode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
use std::{error::Error, fmt::Display};
22

33
use crate::{
4+
SingleValue, StructField, StructValue,
45
format::HumanReadableValue,
56
multiversx_sc::abi::{TypeContents, TypeDescription},
6-
SingleValue, StructField, StructValue,
77
};
88
use multiversx_sc_scenario::{
99
imports::Bech32Address,

data/human-readable/src/encode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use multiversx_sc_scenario::{
88
};
99
use serde_json::{Map, Value as JsonValue};
1010

11-
use crate::{format::HumanReadableValue, AnyValue, SingleValue};
11+
use crate::{AnyValue, SingleValue, format::HumanReadableValue};
1212

1313
pub fn encode_human_readable_value(
1414
input: &AnyValue,

data/human-readable/src/value/single_value.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use multiversx_sc_scenario::multiversx_sc::codec::{
2-
num_bigint::{BigInt, BigUint},
32
EncodeErrorHandler, NestedEncode, NestedEncodeOutput, TopEncode, TopEncodeOutput,
3+
num_bigint::{BigInt, BigUint},
44
};
55

66
pub enum SingleValue {

data/human-readable/tests/enum_test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use multiversx_sc_codec_human_readable::{
2-
decode_human_readable_value, default_value_for_abi_type, encode_human_readable_value,
3-
format::HumanReadableValue, AnyValue, EnumVariant, SingleValue, StructField, StructValue,
2+
AnyValue, EnumVariant, SingleValue, StructField, StructValue, decode_human_readable_value,
3+
default_value_for_abi_type, encode_human_readable_value, format::HumanReadableValue,
44
};
55
use multiversx_sc_scenario::{
66
meta::abi_json::deserialize_abi_from_json,

data/human-readable/tests/single_value_tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use multiversx_sc_codec_human_readable::{
2-
decode_human_readable_value, default_value_for_abi_type, encode_human_readable_value,
3-
format::HumanReadableValue, AnyValue, SingleValue,
2+
AnyValue, SingleValue, decode_human_readable_value, default_value_for_abi_type,
3+
encode_human_readable_value, format::HumanReadableValue,
44
};
55
use multiversx_sc_scenario::{
66
imports::Bech32Address,

data/human-readable/tests/struct_test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use multiversx_sc_codec_human_readable::{
2-
decode_human_readable_value, default_value_for_abi_type, encode_human_readable_value,
3-
format::HumanReadableValue, AnyValue, SingleValue, StructField, StructValue,
2+
AnyValue, SingleValue, StructField, StructValue, decode_human_readable_value,
3+
default_value_for_abi_type, encode_human_readable_value, format::HumanReadableValue,
44
};
55
use multiversx_sc_scenario::{
66
meta::abi_json::deserialize_abi_from_json,

0 commit comments

Comments
 (0)