Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with the nft_mint function #16

Open
MarjanJordanovski opened this issue Feb 6, 2023 · 0 comments
Open

Issue with the nft_mint function #16

MarjanJordanovski opened this issue Feb 6, 2023 · 0 comments

Comments

@MarjanJordanovski
Copy link

MarjanJordanovski commented Feb 6, 2023

From my web app, I am calling nft_mint function in the following way:

export function createPlayer() {
  
  return window.contract.nft_mint({ token_id: uuid4(), metadata: {"title": "My Non Fungible Team Token", "description": "The Team Most Certainly Goes :)", "media": "https://bafybeiftczwrtyr3k7a2k4vutd3amkwsmaqyhrdzlhvpt33dyjivufqusq.ipfs.dweb.link/goteam-gif.gif"} , receiver_id: "some-my-account.testnet"}, GAS);
}

GAS variable is set to: 300000000000000

but the error I get from near is:

{"index":0,"kind":{"ExecutionError":"Smart contract panicked: assertion failed: Must attach 11160000000000000000000 yoctoNEAR to cover storage\n at assert (build/nft.js:304)\n at refundDeposit (build/nft.js:861)\n at internalMint (build/nft.js:1065)\n at nft_mint (build/nft.js:1591)\n at nft_mint (build/nft.js:1995)\n"}}

any idea on how can i attach more gas? NEAR wont allow me to attach more than GAS.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant