Skip to content

Commit

Permalink
fix some lints
Browse files Browse the repository at this point in the history
GitOrigin-RevId: cb39784fad84d6ae32759f3056c9bf7ccddb4a21
  • Loading branch information
davidiw authored and aptos-bot committed Oct 24, 2024
1 parent 370b27c commit 19047d1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions aptos-framework/doc/coin.md
Original file line number Diff line number Diff line change
Expand Up @@ -961,10 +961,11 @@ Returns <code><b>true</b></code> if the type <code>CoinType</code> is an initial

## Function `is_coin_store_frozen`

Returns <code><b>true</b></code> is account_addr has frozen the CoinStore
Returns <code><b>true</b></code> is account_addr has frozen the CoinStore or if it's not registered at all


<pre><code><b>public</b> <b>fun</b> <a href="coin.md#0x1_coin_is_coin_store_frozen">is_coin_store_frozen</a>&lt;CoinType&gt;(account_addr: <b>address</b>): bool
<pre><code>#[view]
<b>public</b> <b>fun</b> <a href="coin.md#0x1_coin_is_coin_store_frozen">is_coin_store_frozen</a>&lt;CoinType&gt;(account_addr: <b>address</b>): bool
</code></pre>


Expand All @@ -975,7 +976,7 @@ Returns <code><b>true</b></code> is account_addr has frozen the CoinStore

<pre><code><b>public</b> <b>fun</b> <a href="coin.md#0x1_coin_is_coin_store_frozen">is_coin_store_frozen</a>&lt;CoinType&gt;(account_addr: <b>address</b>): bool <b>acquires</b> <a href="coin.md#0x1_coin_CoinStore">CoinStore</a> {
<b>if</b>(!<a href="coin.md#0x1_coin_is_account_registered">is_account_registered</a>&lt;CoinType&gt;(account_addr)) {
<b>return</b> <b>false</b>
<b>return</b> <b>true</b>
};

<b>let</b> coin_store = <b>borrow_global</b>&lt;<a href="coin.md#0x1_coin_CoinStore">CoinStore</a>&lt;CoinType&gt;&gt;(account_addr);
Expand Down

0 comments on commit 19047d1

Please sign in to comment.