You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, there are some issues with this error like #3134 and #3466. I could not solve the error by inspecting these issues. And my case is a little bit different.
Here's my contract structure as two different files.
pragma solidity^0.6.8;
import"./Inheritance.sol";
contractBasicInheritanceisInheritance {
function add(uint256_amount) public {
total += _amount;
}
}
pragma solidity^0.6.8;
contractInheritance {
uintpublic total;
function remove(uint256_amount) public {
total -= _amount;
}
}
As I understand, there are a problem during sending eth_call which returns 0x as result. The same function was worked on remix. And also, conractAddress is exactly correct, other send functions were worked correctly, for example:
error Error: Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. If you believe this was a mistake, please comment.
I found the reason. It occurs because of a no-deployed contract address. Sending raw tx with bytecode returns contract address, so I used the fake contract address which does not refer to a correct deployed contract. I think the error message creates a misunderstanding about the situation.
By the way, It runs correctly on Ganache. But on Quorum it returns the error.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. If you believe this was a mistake, please comment.
First of all, there are some issues with this error like #3134 and #3466. I could not solve the error by inspecting these issues. And my case is a little bit different.
Here's my contract structure as two different files.
Here's the metadata from the compiled result
If it is needed, here's the bytecode
Expected behavior
call
function must return the total result.Actual behavior
It returns an error as seen on the log.
As I understand, there are a problem during sending
eth_call
which returns0x
as result. The same function was worked on remix. And also,conractAddress
is exactly correct, othersend
functions were worked correctly, for example:Steps to reproduce the behavior
Logs
Environment
nodejs: v12.16.2
web3: v1.2.11
geth: Geth/v1.8.18-stable(quorum-v2.3.0)/linux-amd64/go1.11.8
The text was updated successfully, but these errors were encountered: