Skip to content

Commit e17035a

Browse files
committed
fix: remove unneeded changes to event and guid modules
1 parent f7c4c68 commit e17035a

File tree

3 files changed

+2487
-4712
lines changed

3 files changed

+2487
-4712
lines changed

aptos-move/framework/aptos-framework/sources/event.move

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -91,21 +91,4 @@ module aptos_framework::event {
9191
use std::vector;
9292
vector::contains(&emitted_events_by_handle(handle), msg)
9393
}
94-
95-
#[test_only]
96-
struct TestEvent has drop, store {}
97-
98-
#[test_only]
99-
public fun create_test_event_handle<T: drop + store>(): EventHandle<T> {
100-
let dummy_address = @0x1;
101-
let dummy_creation_num = 0;
102-
let guid = guid::create(dummy_address, &mut dummy_creation_num);
103-
new_event_handle<T>(guid)
104-
}
105-
106-
#[test(account = @0x1)]
107-
public entry fun test_destroy_event_handle(account: signer) {
108-
let handle = create_test_event_handle<TestEvent>();
109-
destroy_handle<TestEvent>(handle);
110-
}
11194
}

aptos-move/framework/aptos-framework/sources/guid.move

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
module aptos_framework::guid {
33
friend aptos_framework::account;
44
friend aptos_framework::object;
5-
friend aptos_framework::event;
65

76
/// A globally unique identifier derived from the sender's address and a counter
87
struct GUID has drop, store {

0 commit comments

Comments
 (0)