Skip to content

Commit

Permalink
Fix coin spec
Browse files Browse the repository at this point in the history
  • Loading branch information
axiongsupra committed Jun 27, 2024
1 parent c14c516 commit f21251e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion aptos-move/framework/supra-framework/sources/coin.move
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ module supra_framework::coin {
use aptos_std::type_info;

friend supra_framework::supra_coin;
//friend supra_framework::supra_coin;
friend supra_framework::genesis;
friend supra_framework::transaction_fee;

Expand Down
6 changes: 4 additions & 2 deletions aptos-move/framework/supra-framework/sources/coin.spec.move
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,13 @@ spec supra_framework::coin {
global supply<CoinType>: num;
global aggregate_supply<CoinType>: num;
apply TotalSupplyTracked<CoinType> to *<CoinType> except
initialize, initialize_internal, initialize_with_parallelizable_supply;
initialize, initialize_internal, initialize_internal_with_limit, initialize_with_parallelizable_supply,
initialize_with_parallelizable_supply_with_limit;
/// [high-level-req-4]
/// [high-level-req-9]
apply TotalSupplyNoChange<CoinType> to *<CoinType> except mint,
burn, burn_from, initialize, initialize_internal, initialize_with_parallelizable_supply;
burn, burn_from, initialize, initialize_internal, initialize_internal_with_limit,
initialize_with_parallelizable_supply, initialize_with_parallelizable_supply_with_limit;
}

spec fun spec_fun_supply_tracked<CoinType>(val: u64, supply: Option<OptionalAggregator>): bool {
Expand Down

0 comments on commit f21251e

Please sign in to comment.