Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] friend declaration is missing in the decompiled code #5

Open
rahxephon89 opened this issue Apr 1, 2024 · 0 comments
Open

[Bug] friend declaration is missing in the decompiled code #5

rahxephon89 opened this issue Apr 1, 2024 · 0 comments

Comments

@rahxephon89
Copy link

When trying to compile the token module decompiled from the bytecode, the following error is raised:

Compiling, may take a little while to download git dependencies...
UPDATING GIT DEPENDENCY https://github.com/aptos-labs/aptos-core.git
INCLUDING DEPENDENCY AptosFramework
INCLUDING DEPENDENCY AptosStdlib
INCLUDING DEPENDENCY MoveStdlib
BUILDING src
error[E04001]: restricted visibility
    ┌─ /.../sources/token.move:743:9
    │
743 │         0x3::token_event_store::emit_collection_description_mutate_event(arg0, arg1, v1.description, arg2);
    │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Invalid call to '0x3::token_event_store::emit_collection_description_mutate_event'
    │

The reason is that the friend declaration is missing from the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant