move-language / move

Apache License 2.0
2.24k stars 677 forks source link

Update BasicCoin.move to fix constant warning in compilation #1058

Closed feliciss closed 1 year ago

feliciss commented 1 year ago

Fix constant warning in compilation:

INCLUDING DEPENDENCY MoveStdlib BUILDING BasicCoin 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.

Motivation

Fix warnings in compilation time.

Have you read the Contributing Guidelines on pull requests?

YES

Test Plan

(Share your test plan here. If you changed code, please provide us with clear instructions for verifying that your changes work.)

TESTED