Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

Update BasicCoin.move #1050

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update BasicCoin.move
Fix warnings
```
warning[W10007]: potential issue with attribute value
   ┌─ ./sources/BasicCoin.move:94:24
   │
94 │     #[expected_failure(abort_code = 2)] // Can specify an abort code
   │                        ^^^^^^^^^^   - Replace value with constant from expected module or add `location=...` attribute.
   │                        │             
   │                        WARNING: passes for an abort from any module.
```
  • Loading branch information
gftea authored May 13, 2023
commit f0e88eacea6a99b61e236cc21854e706685fe272
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ module NamedAddr::BasicCoin {
}

#[test(account = @0x1)]
#[expected_failure(abort_code = 2)] // Can specify an abort code
#[expected_failure(abort_code = EALREADY_HAS_BALANCE)] // Can specify an abort code
fun publish_balance_already_exists(account: signer) {
publish_balance(&account);
publish_balance(&account);
Expand Down