Open fruiz08 opened 1 year ago
@fruiz08 can you tell us how to reproduce this? Is this just, for example, calling a method that returns 0
?
Yes, in my case was calling a ERC20.balanceOf(someAddress). If someAddress's balance is 0 i have that error
I found a workaround adding this line in hardhat/node_modules/hardhat/internal/core/jsonrpc/types/output/decodeJsonRpcResponse.js
function decodeJsonRpcResponse(value, codec) {
// this line
if (value === "0x0" && codec.name === 'DATA') value = "0x00";
const result = codec.decode(value);
if (result.isLeft()) {
throw new errors_1.InvalidResponseError(`Invalid JSON-RPC response's result.
Errors: ${PathReporter_1.PathReporter.report(result).join(", ")}`);
}
return result.value;
}
but I'm still not sure if I may have other problems
Describe the feature
RSK fork is not currently working well. When a call to a contract should return 0 or nothing we get the following error:
Search terms
fork rsk