So am trying to compile and deploy a contract using js sdk. it compiles fine but and error occurs when I try to deploy and pass deploy parameters.
snippet:
const deployed = await client.contractDeploy(compiled.bytecode, ‘sophia’, {initState: ‘(10000, 15)’}).catch(logError);
Reference: https://dev.aepps.com/tutorials/smart-contract-usage-in-javascript-sdk.html.
This is the error am getting:
Error data: {“info”:{“error”:“wrong_type”,“data”:{“abi”:“sophia”,“options”:{“initState”:“(10000, 15)”}},“path”:[“arguments”]},“parameter”:“body”,“reason”:“validation_error”}