@@ -11,7 +11,7 @@ pub trait NonFungibleTokenCore {
11
11
receiver_id : AccountId ,
12
12
token_id : TokenId ,
13
13
//we introduce an approval ID so that people with that approval ID can transfer the token
14
- approval_id : Option < u64 > ,
14
+ approval_id : Option < u32 > ,
15
15
memo : Option < String > ,
16
16
) ;
17
17
@@ -22,7 +22,7 @@ pub trait NonFungibleTokenCore {
22
22
receiver_id : AccountId ,
23
23
token_id : TokenId ,
24
24
//we introduce an approval ID so that people with that approval ID can transfer the token
25
- approval_id : Option < u64 > ,
25
+ approval_id : Option < u32 > ,
26
26
memo : Option < String > ,
27
27
msg : String ,
28
28
) -> PromiseOrValue < bool > ;
@@ -59,7 +59,7 @@ trait NonFungibleTokenResolver {
59
59
receiver_id : AccountId ,
60
60
token_id : TokenId ,
61
61
//we introduce the approval map so we can keep track of what the approvals were before the transfer
62
- approved_account_ids : HashMap < AccountId , u64 > ,
62
+ approved_account_ids : HashMap < AccountId , u32 > ,
63
63
//we introduce a memo for logging the transfer event
64
64
memo : Option < String > ,
65
65
) -> bool ;
@@ -74,7 +74,7 @@ impl NonFungibleTokenCore for Contract {
74
74
receiver_id : AccountId ,
75
75
token_id : TokenId ,
76
76
//we introduce an approval ID so that people with that approval ID can transfer the token
77
- approval_id : Option < u64 > ,
77
+ approval_id : Option < u32 > ,
78
78
memo : Option < String > ,
79
79
) {
80
80
//assert that the user attached exactly 1 yoctoNEAR. This is for security and so that the user will be redirected to the NEAR wallet.
@@ -105,7 +105,7 @@ impl NonFungibleTokenCore for Contract {
105
105
receiver_id : AccountId ,
106
106
token_id : TokenId ,
107
107
//we introduce an approval ID so that people with that approval ID can transfer the token
108
- approval_id : Option < u64 > ,
108
+ approval_id : Option < u32 > ,
109
109
memo : Option < String > ,
110
110
msg : String ,
111
111
) -> PromiseOrValue < bool > {
@@ -189,7 +189,7 @@ impl NonFungibleTokenResolver for Contract {
189
189
receiver_id : AccountId ,
190
190
token_id : TokenId ,
191
191
//we introduce the approval map so we can keep track of what the approvals were before the transfer
192
- approved_account_ids : HashMap < AccountId , u64 > ,
192
+ approved_account_ids : HashMap < AccountId , u32 > ,
193
193
//we introduce a memo for logging the transfer event
194
194
memo : Option < String > ,
195
195
) -> bool {
0 commit comments