File tree Expand file tree Collapse file tree 3 files changed +2487
-4712
lines changed Expand file tree Collapse file tree 3 files changed +2487
-4712
lines changed Original file line number Diff line number Diff line change @@ -91,21 +91,4 @@ module aptos_framework::event {
91
91
use std::vector;
92
92
vector ::contains (&emitted_events_by_handle (handle), msg)
93
93
}
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
- }
111
94
}
Original file line number Diff line number Diff line change 2
2
module aptos_framework ::guid {
3
3
friend aptos_framework ::account ;
4
4
friend aptos_framework ::object ;
5
- friend aptos_framework ::event ;
6
5
7
6
/// A globally unique identifier derived from the sender's address and a counter
8
7
struct GUID has drop , store {
You can’t perform that action at this time.
0 commit comments