Getting an error on Esealing Dapp: Error: Unable to serialize Parameters, due to: Unable to find contract schema in module schema

The error as mentioned in the topic and attached as screenshot here is coming when we use our Smart Contract: indexed: 6310, with our Contract Schema which is:

The base64 conversion of the schema is:
//8DAQAAAAsAAABFZHVidWtlU2VhbAACAAAABwAAAGdldEZpbGUGHiAAAAAVAgAAAAQAAABOb25lAgQAAABTb21lAQEAAAAUAAIAAAAJAAAAdGltZXN0YW1wDQcAAAB3aXRuZXNzCxUFAAAACwAAAFBhcnNlUGFyYW1zAgcAAABMb2dGdWxsAgwAAABMb2dNYWxmb3JtZWQCCwAAAE9ubHlBY2NvdW50AhEAAABBbHJlYWR5UmVnaXN0ZXJlZAIMAAAAcmVnaXN0ZXJGaWxlBB4gAAAAFQUAAAALAAAAUGFyc2VQYXJhbXMCBwAAAExvZ0Z1bGwCDAAAAExvZ01hbGZvcm1lZAILAAAAT25seUFjY291bnQCEQAAAEFscmVhZHlSZWdpc3RlcmVkAgEVAQAAAAwAAABSZWdpc3RyYXRpb24BAQAAABQAAwAAAAkAAABmaWxlX2hhc2geIAAAAAcAAAB3aXRuZXNzCwkAAAB0aW1lc3RhbXAN

however the same error does not come, and all works fine: when we use old Smart Contract deployed (by Concordium easeling app) indexed: 2481 with their contract schema (which is different from our contract schema given above).

So our question is how can we do away with the only error we are getting while computing the register file: using our contract: 6310 (index) and our contract Schema. thank you.

@Apoorva-Edubuk Could you confirm that you use EdubukeSeal as the contract name when sending your transaction to the contract 6310.

I suspect that the value ${E_SEALING_CONTRACT_NAME} is still set to the eSealing and was not updated.

connection.signAndSendTransaction(
account,
AccountTransactionType.Update,
{
amount: new CcdAmount(BigInt(0n)),
address: {
index,
subindex,
},
receiveName: EdubukeSeal.registerFile,
maxContractExecutionEnergy: 30000n,
},
{
parameters: fileHashHex,
schema: moduleSchemaFromBase64(E_SEALING_RAW_SCHEMA),
}

1 Like

Hi @Doris : we are using the contract name as: “edubukeseal_testnet” for the contract indexed at 6310

Hi @Doris : thanks a lot man! a small fix but yes, updated the name of the contract and it is working perfectly. Consider this resolved now. thanks a lot.

export const E_SEALING_CONTRACT_NAME = “EdubukeSeal”;

export const E_SEALING_CONTRACT_INDEX = 6310n;

export const E_SEALING_RAW_SCHEMA = ‘//8DAQAAAAsAAABFZHVidWtlU2VhbAACAAAABwAAAGdldEZpbGUGHiAAAAAVAgAAAAQAAABOb25lAgQAAABTb21lAQEAAAAUAAIAAAAJAAAAdGltZXN0YW1wDQcAAAB3aXRuZXNzCxUFAAAACwAAAFBhcnNlUGFyYW1zAgcAAABMb2dGdWxsAgwAAABMb2dNYWxmb3JtZWQCCwAAAE9ubHlBY2NvdW50AhEAAABBbHJlYWR5UmVnaXN0ZXJlZAIMAAAAcmVnaXN0ZXJGaWxlBB4gAAAAFQUAAAALAAAAUGFyc2VQYXJhbXMCBwAAAExvZ0Z1bGwCDAAAAExvZ01hbGZvcm1lZAILAAAAT25seUFjY291bnQCEQAAAEFscmVhZHlSZWdpc3RlcmVkAgEVAQAAAAwAAABSZWdpc3RyYXRpb24BAQAAABQAAwAAAAkAAABmaWxlX2hhc2geIAAAAAcAAAB3aXRuZXNzCwkAAAB0aW1lc3RhbXAN’;

export const CONTRACT_SUB_INDEX = 0n;

2 Likes