diff --git a/runtime/src/account_info.rs b/runtime/src/account_info.rs index f5254941eb..b15ee6b8ef 100644 --- a/runtime/src/account_info.rs +++ b/runtime/src/account_info.rs @@ -130,6 +130,8 @@ impl AccountInfo { } pub fn store_id(&self) -> AppendVecId { + // if the account is in a cached store, the store_id is meaningless + assert!(!self.is_cached()); self.store_id }