From 011bf704afbdfed90e9dea485a489f71b184f680 Mon Sep 17 00:00:00 2001 From: Aaron Date: Wed, 22 May 2024 13:57:15 -0400 Subject: [PATCH] [fix] make v1.13 compatible with v1.12 (#13376) --- .../framework/aptos-token/doc/token_transfers.md | 12 ++++++++---- .../aptos-token/sources/token_transfers.move | 4 ++++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/aptos-move/framework/aptos-token/doc/token_transfers.md b/aptos-move/framework/aptos-token/doc/token_transfers.md index 4a83d05aa5416..960c9e0ce2094 100644 --- a/aptos-move/framework/aptos-token/doc/token_transfers.md +++ b/aptos-move/framework/aptos-token/doc/token_transfers.md @@ -97,7 +97,8 @@ This module provides the foundation for transferring of Tokens -
struct TokenOfferId has copy, drop, store
+
#[event]
+struct TokenOfferId has copy, drop, store
 
@@ -170,7 +171,8 @@ This module provides the foundation for transferring of Tokens -
struct TokenOfferEvent has drop, store
+
#[event]
+struct TokenOfferEvent has drop, store
 
@@ -209,7 +211,8 @@ This module provides the foundation for transferring of Tokens -
struct TokenCancelOfferEvent has drop, store
+
#[event]
+struct TokenCancelOfferEvent has drop, store
 
@@ -288,7 +291,8 @@ This module provides the foundation for transferring of Tokens -
struct TokenClaimEvent has drop, store
+
#[event]
+struct TokenClaimEvent has drop, store
 
diff --git a/aptos-move/framework/aptos-token/sources/token_transfers.move b/aptos-move/framework/aptos-token/sources/token_transfers.move index b255de3a204a4..6a8ec33b5ae2b 100644 --- a/aptos-move/framework/aptos-token/sources/token_transfers.move +++ b/aptos-move/framework/aptos-token/sources/token_transfers.move @@ -22,6 +22,7 @@ module aptos_token::token_transfers { claim_events: EventHandle, } + #[event] struct TokenOfferId has copy, drop, store { to_addr: address, token_id: TokenId, @@ -34,12 +35,14 @@ module aptos_token::token_transfers { amount: u64, } + #[event] struct TokenOfferEvent has drop, store { to_address: address, token_id: TokenId, amount: u64, } + #[event] struct TokenCancelOfferEvent has drop, store { to_address: address, token_id: TokenId, @@ -53,6 +56,7 @@ module aptos_token::token_transfers { amount: u64, } + #[event] struct TokenClaimEvent has drop, store { to_address: address, token_id: TokenId,