Skip to content

Commit

Permalink
fix spec
Browse files Browse the repository at this point in the history
  • Loading branch information
pause125 committed May 22, 2022
1 parent 95ab521 commit 08285aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sources/Account.move
Original file line number Diff line number Diff line change
Expand Up @@ -1003,8 +1003,8 @@ module Account {

spec remove_zero_balance {
let addr = Signer::address_of(account);
aborts_if !old(exists<Balance<TokenType>>(addr));
ensures !exists<Balance<CoinType>>(addr);
aborts_if !exists<Balance<TokenType>>(addr);
ensures !exists<Balance<TokenType>>(addr);
}
}

Expand Down
3 changes: 2 additions & 1 deletion sources/NFT.move
Original file line number Diff line number Diff line change
Expand Up @@ -892,10 +892,11 @@ module NFTGallery {

spec remove_empty_gallery {
let sender_addr = Signer::address_of(sender);
aborts_if !old(exists<NFTGallery<NFTMeta, NFTBody>>(sender_addr));
aborts_if !exists<NFTGallery<NFTMeta, NFTBody>>(sender_addr);

let gallery = global<NFTGallery<NFTMeta, NFTBody>>(sender_addr);
aborts_if Vector::length<NFT<NFTMeta, NFTBody>>(gallery.items) > 0;

ensures !exists<NFTGallery<NFTMeta, NFTBody>>(sender_addr);
}

Expand Down

0 comments on commit 08285aa

Please sign in to comment.