When I call mint
function on deployed NFT contract through concordium-client
I got the success result of invocation. But when we call it with the same parameter JSON, schema and contractName like this:
const contractName = 'nft';
let receiveFunctionName = 'mint';
let methodName = contractName + '.' + receiveFunctionName;
const moduleFileBuffer = new Buffer(bin64NFT, 'base64');
const parameters = {
"owner" : {"Account":[selectedAccount]},
"tokens_metadata": [
{
"url": "https://gateway.pinata.cloud/ipfs/QmZ3939dLLFzvYZjFnkdqACe2n9TQA8Rx4efbjaYTXteeu",
"hash": "f982b4603b9c116598d381d1aee90a7b5332377b209b6bbd8d7a4dfab18f2a80"
}
]
};
console.log("Connecting to CCD... methodName " + methodName);
let inputParams = concordiumSDK.serializeUpdateContractParameters(
contractName,
receiveFunctionName,
parameters,
moduleFileBuffer,
0
);
we got an error
Error: Unsupported schema version
We tried to change schema version between 0,1,2 but got the same error everytime.
CCD Testnet
Contract Index: 2592
UPD
i try to use latest js instead of lib u provided:
<script type="text/javascript" src="//unpkg.com/@concordium/browser-wallet-api-helpers@2.2.0/lib/concordiumHelpers.min.js"></script>
<script type="text/javascript" src="//unpkg.com/@concordium/web-sdk@3.2.0/lib/concordium.min.js"></script>
<!-- <script type="text/javascript" src="concordium.min.js"></script>-->
and get empty pop-up: