mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 12:21:32 +00:00
Update deps to use scale-type-resolver 0.2 (#1565)
* Updates for scale-type-resolver 0.2 * show that we can check the name too now * Bump versions and fix WrapperKeepOpaque name check
This commit is contained in:
@@ -25,7 +25,7 @@ pub fn explore_constants(
|
||||
Usage:
|
||||
subxt explore pallet {pallet_name} constants <CONSTANT>
|
||||
explore a specific constant of this pallet
|
||||
|
||||
|
||||
{constants}
|
||||
"}
|
||||
};
|
||||
@@ -53,7 +53,7 @@ pub fn explore_constants(
|
||||
writedoc! {output, "
|
||||
Description:
|
||||
{doc_string}
|
||||
|
||||
|
||||
"}?;
|
||||
}
|
||||
|
||||
@@ -64,11 +64,8 @@ pub fn explore_constants(
|
||||
.highlight();
|
||||
|
||||
// value
|
||||
let value = scale_value::scale::decode_as_type(
|
||||
&mut constant.value(),
|
||||
&constant.ty(),
|
||||
metadata.types(),
|
||||
)?;
|
||||
let value =
|
||||
scale_value::scale::decode_as_type(&mut constant.value(), constant.ty(), metadata.types())?;
|
||||
let value = format_scale_value(&value).indent(4);
|
||||
|
||||
writedoc!(
|
||||
|
||||
Reference in New Issue
Block a user