You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compiling, testing or proving the Move contract atomic_bridge.move generates several warnings.
some are related to import of unused packages warning: unused alias ┌─ /Users/franck/development/mvntlabs-aptos-core/aptos-move/framework/aptos framework/sources/atomic_bridge.move:529:26 │ 529 │ use aptos_framework::atomic_bridge_configuration; │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ Unused 'use' of alias 'atomic_bridge_configuration'. Consider removing it
some to documentation that is not properly positioned. warning: invalid documentation comment ┌─ /Users/franck/development/mvntlabs-aptos-core/aptos-move/framework/aptos-framework/sources/atomic_bridge.move:831:5 │ 831 │ /// Gets initiator bridge transfer details given a bridge transfer ID │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Documentation comment cannot be matched to a language item
Fixes
for unused import warnings use #[test_only] when module is only used in tests
for documentation, swap documentation /// this is the doc and the attribute [#view] (attribute comes before doc).
The text was updated successfully, but these errors were encountered:
franck44
changed the title
[Warnings] when compiling/testing Move module atomic_bridge
[Bridge] [Warnings] when compiling/testing Move module atomic_bridgeNov 7, 2024
Problems
Compiling, testing or proving the Move contract atomic_bridge.move generates several warnings.
warning: unused alias ┌─ /Users/franck/development/mvntlabs-aptos-core/aptos-move/framework/aptos framework/sources/atomic_bridge.move:529:26 │ 529 │ use aptos_framework::atomic_bridge_configuration; │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ Unused 'use' of alias 'atomic_bridge_configuration'. Consider removing it
warning: invalid documentation comment ┌─ /Users/franck/development/mvntlabs-aptos-core/aptos-move/framework/aptos-framework/sources/atomic_bridge.move:831:5 │ 831 │ /// Gets initiator bridge transfer details given a bridge transfer ID │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Documentation comment cannot be matched to a language item
Fixes
#[test_only]
when module is only used in tests/// this is the doc
and the attribute[#view]
(attribute comes before doc).The text was updated successfully, but these errors were encountered: