mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 11:31:05 +00:00
broken fractured commits, only a few errors remaining
This commit is contained in:
@@ -39,7 +39,7 @@ impl<T: Config, Client: OfflineClientT<T>> CustomValuesClient<T, Client> {
|
||||
let custom = metadata.custom();
|
||||
let custom_value = custom
|
||||
.get(address.name())
|
||||
.ok_or_else(|| MetadataError::CustomValueNameNotFound(address.name().to_string()))?;
|
||||
.ok_or_else(|| MetadataError::CustomValueNameNotFound(address.name().to_owned()))?;
|
||||
|
||||
let value = <Address::Target as DecodeWithMetadata>::decode_with_metadata(
|
||||
&mut custom_value.bytes(),
|
||||
@@ -62,7 +62,7 @@ impl<T: Config, Client: OfflineClientT<T>> CustomValuesClient<T, Client> {
|
||||
let custom = metadata.custom();
|
||||
let custom_value = custom
|
||||
.get(address.name())
|
||||
.ok_or_else(|| MetadataError::CustomValueNameNotFound(address.name().to_string()))?;
|
||||
.ok_or_else(|| MetadataError::CustomValueNameNotFound(address.name().to_owned()))?;
|
||||
|
||||
Ok(custom_value.bytes().to_vec())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user