We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e81c9b4 commit a9aeb68Copy full SHA for a9aeb68
1 file changed
sdk-libs/client/src/rpc/client.rs
@@ -1172,7 +1172,12 @@ impl Rpc for LightClient {
1172
1173
let value = match resp.value {
1174
Some(ai) => {
1175
- let state = if ai.is_cold() {
+ // An account is truly cold only when it has compressed data
1176
+ // AND the on-chain account is closed (no data). Light Token mints
1177
+ // that are on-chain (decompressed) may have both on-chain data
1178
+ // and a compressed account — treat those as hot.
1179
+ let is_truly_cold = ai.is_cold() && ai.account.data.is_empty();
1180
+ let state = if is_truly_cold {
1181
let cold = ai.cold.as_ref().ok_or_else(|| {
1182
RpcError::CustomError("Cold mint missing cold context".into())
1183
})?;
0 commit comments