Add DecodedValueThunk to allow getting bytes back from dynamic queries (#680)

This commit is contained in:
James Wilson
2022-10-06 09:58:01 +01:00
committed by GitHub
parent 81175b2dd9
commit 98af356644
5 changed files with 91 additions and 11 deletions
+2 -2
View File
@@ -3,7 +3,7 @@
// see LICENSE for license details.
use crate::{
dynamic::DecodedValue,
dynamic::DecodedValueThunk,
metadata::DecodeWithMetadata,
};
use std::borrow::Cow;
@@ -97,7 +97,7 @@ pub fn dynamic<'a>(
}
impl<'a> ConstantAddress for DynamicConstantAddress<'a> {
type Target = DecodedValue;
type Target = DecodedValueThunk;
fn pallet_name(&self) -> &str {
&self.pallet_name