diff --git a/crates/sui-graphql-rpc/src/types/balance.rs b/crates/sui-graphql-rpc/src/types/balance.rs index d4744a850534d..9823db1dcca7f 100644 --- a/crates/sui-graphql-rpc/src/types/balance.rs +++ b/crates/sui-graphql-rpc/src/types/balance.rs @@ -270,7 +270,7 @@ fn balance_query( /// Applies the filtering criteria for balances to the input `RawQuery` and returns a new /// `RawQuery`. fn filter(mut query: RawQuery, owner: SuiAddress, coin_type: Option) -> RawQuery { - query = filter!(query, "coin_type IS NOT NULL"); + query = filter!(query, "coin_type IS NOT NULL AND object_status = 0"); query = filter!( query, diff --git a/crates/sui-graphql-rpc/src/types/coin.rs b/crates/sui-graphql-rpc/src/types/coin.rs index f911256f477f4..e572d8e703cc8 100644 --- a/crates/sui-graphql-rpc/src/types/coin.rs +++ b/crates/sui-graphql-rpc/src/types/coin.rs @@ -435,7 +435,7 @@ fn apply_filter(mut query: RawQuery, coin_type: &TypeTag, owner: Option