Low level function calls work in Truffle, Solidity is not the problem.
Other method invocations are working with the JS and HTML.
This is my first attempt at using .call
instead of .send
; I am not sure why I am getting this error.
For the record, I am using Web3 1.x
ERROR:
Error: Returned values aren't valid, did it run Out of Gas?
JS:
await this.KYCinstance.methods.readFraud(fraudID).call({from:this.accounts[0], gas:3000000});
SOLIDITY:
function readFraud (uint256 fraudID) external view returns(address, string memory, string memory, uint256, uint256) {
Fraud memory fraud = frauds[fraudID];
return(fraud.bank, fraud.accountNumber, fraud.routingNumber, fraud.amount, fraud.timestamp);
}