-
Discord user IDhaupc Describe your question in detail.I'm trying to use resource group to store object but getting When define the resource group: #[resource_group(scope = module)]
struct ResourceGroup {} and then compile, I got an error:
I'm doing it follow this aip: https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-9.md#within-the-framework What error, if any, are you getting?compilation failed: Compilation error
What have you tried or looked at? Or how can we reproduce the error?complie Which operating system are you using?macOS Which SDK or tool are you using? (if any)Aptos CLI Describe your environment or tooling in detailNo response |
Beta Was this translation helpful? Give feedback.
Answered by
Haupc
Mar 26, 2025
Replies: 1 comment 4 replies
-
can you try writing |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
as you can see in the file line 83:
#[resource_group(scope = global)]
.scope = global
works fine for me.Actually I'm using
scope = address
and I think that it's doing great.I'm just wonder if
scope = module
work?