I was reading an interesting answer and wanted to make a quick test in browser-solidity.
My contract code is below and I'd just like to get the string I passed in the constructor.
contract testConstant{
string testString;
// {"_testString":"this is a test"}
function testConstant(string _testString) {
testString=_testString;
}
function gettestString() public constant returns(string) {
return testString;
}
}
Attached a screenshot, maybe I'm overlooking something but it seems to me the gettestString in blue should return the arg I passed in the constructor : "this is a test"
