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
@@ -5,7 +5,7 @@
use super::storage_map_key::StorageMapKey;
use crate::{
dynamic::{
DecodedValue,
DecodedValueThunk,
Value,
},
error::{
@@ -194,7 +194,7 @@ impl<'a, Encodable> StorageAddress for DynamicStorageAddress<'a, Encodable>
where
Encodable: EncodeWithMetadata,
{
type Target = DecodedValue;
type Target = DecodedValueThunk;
// For dynamic types, we have no static guarantees about any of
// this stuff, so we just allow it and let it fail at runtime: