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
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.4.16 <0.7.0;
contract SimpleStorage {
uint storedData;
function set(uint x) public {
storedData = x;
}
function get() public view returns (uint) {
return storedData;
}
}
When I compite with java maven
org.web3j
web3j-maven-plugin
4.5.11
I get this warnings:
[WARNING] Definition of the function get returns a value but is not defined as a view function. Please ensure it contains the view modifier if you want to read the return value
[INFO] Built Class for contract 'SimpleStorage'
Why this happens, it is clearly defined as public view
Can anybody help?
Thank you
Will
The text was updated successfully, but these errors were encountered:
Hello
I have this very simple Smart Contract:
When I compite with java maven
org.web3j
web3j-maven-plugin
4.5.11
I get this warnings:
[WARNING] Definition of the function get returns a value but is not defined as a view function. Please ensure it contains the view modifier if you want to read the return value
[INFO] Built Class for contract 'SimpleStorage'
Why this happens, it is clearly defined as public view
Can anybody help?
Thank you
Will
The text was updated successfully, but these errors were encountered: