diff --git a/aptos-framework/doc/coin.md b/aptos-framework/doc/coin.md index 64cb430c2..527e51b18 100644 --- a/aptos-framework/doc/coin.md +++ b/aptos-framework/doc/coin.md @@ -961,10 +961,11 @@ Returns true if the type CoinType is an initial ## Function `is_coin_store_frozen` -Returns true is account_addr has frozen the CoinStore +Returns true is account_addr has frozen the CoinStore or if it's not registered at all -
public fun is_coin_store_frozen<CoinType>(account_addr: address): bool
+
#[view]
+public fun is_coin_store_frozen<CoinType>(account_addr: address): bool
 
@@ -975,7 +976,7 @@ Returns true is account_addr has frozen the CoinStore
public fun is_coin_store_frozen<CoinType>(account_addr: address): bool acquires CoinStore {
     if(!is_account_registered<CoinType>(account_addr)) {
-      return false
+      return true
     };
 
     let coin_store = borrow_global<CoinStore<CoinType>>(account_addr);