You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm developing a transfer nft system. The function transfer works when I use it on website like this
but got error when call in contract:
What error, if any, are you getting?
I passed a same type args but got error
type token::Token is missing required ability key
│
73 │ object::transfertoken::Token(
│ ^^^^^^^^^^^^
│
┌─ /home/menhythien/.move/https___github_com_aptos-labs_aptos-framework_git_mainnet/aptos-framework/sources/object.move:531:31
│
531 │ public entry fun transfer<T: key>(
│ - declaration of type parameter T
│
= required by instantiating type parameter T:key of function transfer
What have you tried or looked at? Or how can we reproduce the error?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Discord user ID
664462705255776287
Describe your question in detail.
I'm developing a transfer nft system. The function transfer works when I use it on website like this

but got error when call in contract:

What error, if any, are you getting?
I passed a same type args but got error
type
token::Token
is missing required abilitykey
│
73 │ object::transfertoken::Token(
│ ^^^^^^^^^^^^
│
┌─ /home/menhythien/.move/https___github_com_aptos-labs_aptos-framework_git_mainnet/aptos-framework/sources/object.move:531:31
│
531 │ public entry fun transfer<T: key>(
│ - declaration of type parameter
T
│
= required by instantiating type parameter
T:key
of functiontransfer
What have you tried or looked at? Or how can we reproduce the error?
How can I transfer nft in contract
Which operating system are you using?
Linux (Ubuntu, Fedora, Windows WSL, etc.)
Which SDK or tool are you using? (if any)
Aptos CLI
Describe your environment or tooling in detail
No response
Beta Was this translation helpful? Give feedback.
All reactions