How do I get a return value in solidity?
I'm using some test code in remix, but I don't understand where the output is displayed.
my code is as follows:
pragma solidity ^0.4.17;
contract Test {
function getValue(string something) public returns (uint) {
return 123;
}
}
when I call the getValue
method with a string "testing123"
(quote marks required), I expected the function to return 123
.
the properties returned on Remix are:
decoded input:
-
decoded output
{ "string something": "testing123" }
I have read the documentation but I may not be understanding some part of it. Any help is appreciated.