From 43393ea45d3dc9fb15cad2894f7d3ad46fed808f Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" Date: Tue, 15 Feb 2022 15:22:36 -0600 Subject: [PATCH] assert on AcctInfo.store_id with cached store (#21952) --- runtime/src/account_info.rs | 2 ++ 1 file changed, 2 insertions(+) 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 }