Skip to content

Commit

Permalink
add (uncomplete) nft transfer to wallet support
Browse files Browse the repository at this point in the history
  • Loading branch information
matijamarjanovic committed Jan 17, 2025
1 parent 9d1ac17 commit a388d8e
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ func useWallet() {
grc1155_token.SafeTransferFrom(caller, std.CurrentRealm().Addr(), grc1155.TokenID(token_id), uint64(token_balance))
println("token_id", token_id, "token_balance", token_balance)

} else if token_type == "NFT" {
tokenGetter := tokenhub.MustGetGRC721(token_key)
nft_token := tokenGetter()
nft_token.SafeTransferFrom(caller, std.CurrentRealm().Addr(), "") // TODO: token_id
println("token_id", token_id, "token_balance", token_balance)

}
return true
})
Expand Down

0 comments on commit a388d8e

Please sign in to comment.