@@ -11,7 +11,7 @@ pub trait NonFungibleTokenCore {
1111 receiver_id : AccountId ,
1212 token_id : TokenId ,
1313 //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 > ,
1515 memo : Option < String > ,
1616 ) ;
1717
@@ -22,7 +22,7 @@ pub trait NonFungibleTokenCore {
2222 receiver_id : AccountId ,
2323 token_id : TokenId ,
2424 //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 > ,
2626 memo : Option < String > ,
2727 msg : String ,
2828 ) -> PromiseOrValue < bool > ;
@@ -59,7 +59,7 @@ trait NonFungibleTokenResolver {
5959 receiver_id : AccountId ,
6060 token_id : TokenId ,
6161 //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 > ,
6363 //we introduce a memo for logging the transfer event
6464 memo : Option < String > ,
6565 ) -> bool ;
@@ -74,7 +74,7 @@ impl NonFungibleTokenCore for Contract {
7474 receiver_id : AccountId ,
7575 token_id : TokenId ,
7676 //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 > ,
7878 memo : Option < String > ,
7979 ) {
8080 //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 {
105105 receiver_id : AccountId ,
106106 token_id : TokenId ,
107107 //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 > ,
109109 memo : Option < String > ,
110110 msg : String ,
111111 ) -> PromiseOrValue < bool > {
@@ -189,7 +189,7 @@ impl NonFungibleTokenResolver for Contract {
189189 receiver_id : AccountId ,
190190 token_id : TokenId ,
191191 //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 > ,
193193 //we introduce a memo for logging the transfer event
194194 memo : Option < String > ,
195195 ) -> bool {
0 commit comments