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!
From my web app, I am calling nft_mint function in the following way:
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!