I am facing the some issue with gas but i do not have any modifiers in my contract. Even a simple setter-getter contract shows the following Error
Error: gas required exceeds allowance or always failing transaction
The above error is displayed when i try to estimateGas for setting a value for the string variable using setter().
If i directly execute the transaction without estimateGas then i get a transaction Hash. when transaction is checked the transaction status is as follows
0x0 Transaction mined but execution failed
Contract:
pragma solidity ^0.5.0;
contract SampleContract{
string public str;
constructor()public{
str="Hello World!";
}
function setter(string memory s)public{
str=s;
}
}
Note: Contract Deployed directly in Geth-Console of locally created Node
Using Private Permissioned Node Quorum (v 2.4.0)
Solc to compile and generate abi and bytecode
Can anyone please solve my issue.
homesteadBlock": 0, "byzantiumBlock": 0, "chainId": 10, "eip150Block": 0, "eip155Block": 0, "eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000", "eip158Block": 0, "isQuorum": true
– Geethapriya G H Dec 17 '19 at 5:44