-
Notifications
You must be signed in to change notification settings - Fork 11.5k
value problem of struct on test process #22260
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
Comments
Thank you for opening this issue, a team member will review it shortly. Until then, please do not interact with any users that claim to be from Sui support and do not click on any links! |
You are creating an instance of an asset (ReferralBook) which cannot be automatically dropped at the end of the scope. You need to either consume it somehow or transfer it somewhere or just return it with your function. https://intro.sui-book.com/unit-one/lessons/3_custom_types_and_abilities.html |
My project very simple.
unit test:
but you can see the error that I can't add drop to struct due to table is not accept.
|
I define a struct
but when test get error that
test code:
I try to add drop ability but the ID and table can't accept it.
The text was updated successfully, but these errors were encountered: