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

Support the data_struct related testing for the verifier. #1729

Merged

Conversation

steelgeek091
Copy link
Collaborator

No description provided.

Copy link

vercel bot commented May 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rooch-portal ❌ Failed (Inspect) May 23, 2024 6:43am
rooch-rooch-portal-v1 ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 23, 2024 6:43am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
rooch ⬜️ Ignored (Inspect) Visit Preview May 23, 2024 6:43am

Comment on lines +47 to +71
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq, PartialOrd, Ord)]
pub enum ErrorCode {
MALFORMED_METADATA = 10000,
FUNCTION_NOT_EXITS = 10001,
STRUCT_NOT_EXISTS = 10002,
NOT_ENOUGH_PARAMETERS = 10003,
TOO_MANY_PARAMETERS = 10004,
TYPE_MISMATCH = 10005,
MALFORMED_STRUCT_NAME = 10006,
MALFORMED_FUNCTION_NAME = 10007,
INVALID_DATA_STRUCT = 10008,
INVALID_DATA_STRUCT_TYPE = 10009,
INVALID_MODULE_OWNER = 10010,

INVALID_ENTRY_FUNC_SIGNATURE = 11000,
INVALID_PARAM_TYPE_ENTRY_FUNCTION = 11001,

INVALID_PUBLIC_INIT_FUNC = 12000,
INVALID_INIT_FUNC_WITH_ENTRY = 12001,
INVALID_TOO_MANY_PARAMS_INIT_FUNC = 12002,

INVALID_INSTRUCTION = 13000,

UNKNOWN_CODE = 18446744073709551615,
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can also define the error code in move_module.move, so the explain command can work.

@jolestar jolestar merged commit c194798 into rooch-network:main May 23, 2024
5 of 7 checks passed
@jolestar
Copy link
Contributor

#216

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

Successfully merging this pull request may close these issues.

2 participants