diff --git a/substrate/paint/support/src/storage/generator/double_map.rs b/substrate/paint/support/src/storage/generator/double_map.rs index cac8dbd034..072b530e4c 100644 --- a/substrate/paint/support/src/storage/generator/double_map.rs +++ b/substrate/paint/support/src/storage/generator/double_map.rs @@ -89,6 +89,14 @@ where { type Query = G::Query; + fn hashed_key_for(k1: KArg1, k2: KArg2) -> Vec + where + KArg1: EncodeLike, + KArg2: EncodeLike, + { + Self::storage_double_map_final_key(k1, k2) + } + fn exists(k1: KArg1, k2: KArg2) -> bool where KArg1: EncodeLike, diff --git a/substrate/paint/support/src/storage/mod.rs b/substrate/paint/support/src/storage/mod.rs index af64d2a179..91e1776788 100644 --- a/substrate/paint/support/src/storage/mod.rs +++ b/substrate/paint/support/src/storage/mod.rs @@ -264,6 +264,11 @@ pub trait StorageDoubleMap { /// The type that get/take returns. type Query; + fn hashed_key_for(k1: KArg1, k2: KArg2) -> Vec + where + KArg1: EncodeLike, + KArg2: EncodeLike; + fn exists(k1: KArg1, k2: KArg2) -> bool where KArg1: EncodeLike,