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
json
When calling json() on the execution result of function that doesn't return anything, the following error is generated:
json()
Error: DataConversion Caused by: EOF while parsing a value at line 1 column 0
We should catch this and create a better error message for the user that explains the problem.
Minimal code to reproduce assuming a contract with a new method that doesn't return anything:
new
let worker = workspaces::sandbox().await?; let wasm = fs::read(/*WASM FILEPATH*/)?; let contract = worker.dev_deploy(&wasm).await?; contract.call("new").transact().await?.json()?;
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
When calling
json()
on the execution result of function that doesn't return anything, the following error is generated:We should catch this and create a better error message for the user that explains the problem.
Minimal code to reproduce assuming a contract with a
new
method that doesn't return anything:The text was updated successfully, but these errors were encountered: