We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
pragma solidity ^0.8.7; contract Json { function getParameter(string memory jsonData) public view returns (string memory) { return jsonData; } }
I want to store JSON input in my Smart Contract. Like
{ "name":"John" }
when i input { "name":"John" } or "{ "name":"John" }" ,Remix says, that there is an SyntaxError:
call to Json.getParameter errored: Error encoding arguments: Error: types/values length mismatch (count={"types":1,"values":3}, value={"types":["string"],"values":["{ \",":\"," }"]}, code=INVALID_ARGUMENT, version=abi/5.5.0)
Can someone help me?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I want to store JSON input in my Smart Contract. Like
{ "name":"John" }
when i input { "name":"John" } or "{ "name":"John" }" ,Remix says, that there is an SyntaxError:
call to Json.getParameter errored: Error encoding arguments: Error: types/values length mismatch (count={"types":1,"values":3}, value={"types":["string"],"values":["{ \",":\"," }"]}, code=INVALID_ARGUMENT, version=abi/5.5.0)
Can someone help me?
The text was updated successfully, but these errors were encountered: