pragma solidity ^0.4.25; contract sample { struct Human { string name; uint32 age; } Human human = Human("taro", 20); uint store; function setStore(uint _value) public { store = _value; } function getStore() public view returns(uint) { return store; } function setHuman(string _name, uint32 _age) public { human = Human(_name, _age); } function getHuman() public view returns(Human) { ABIEncoderV2 } }
0.5.4