Skip to content

Commit

Permalink
add #[event] to known attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
lightmark authored and msmouse committed Aug 21, 2023
1 parent 6a30bcd commit 5af30fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aptos-move/e2e-move-tests/src/tests/module_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,5 @@ fn verify_module_event_upgrades() {
builder.add_source("m.move", source);
let path = builder.write_to_temp().unwrap();
let result = h.publish_package(&account, path.path());
assert_vm_status!(result, StatusCode::CONSTRAINT_NOT_SATISFIED);
assert_vm_status!(result, StatusCode::EVENT_METADATA_VALIDATION_ERROR);
}
3 changes: 2 additions & 1 deletion aptos-move/framework/src/extended_checks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@ const VIEW_FUN_ATTRIBUTE: &str = "view";

// top-level attribute names, only.
pub fn get_all_attribute_names() -> &'static BTreeSet<String> {
const ALL_ATTRIBUTE_NAMES: [&str; 4] = [
const ALL_ATTRIBUTE_NAMES: [&str; 5] = [
LEGACY_ENTRY_FUN_ATTRIBUTE,
RESOURCE_GROUP,
RESOURCE_GROUP_MEMBER,
VIEW_FUN_ATTRIBUTE,
EVENT_STRUCT_ATTRIBUTE,
];

fn extended_attribute_names() -> BTreeSet<String> {
Expand Down

0 comments on commit 5af30fb

Please sign in to comment.