ethers-rs/ethers-contract/tests/solidity-contracts/Abiencoderv2Test.sol

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
263 B
Solidity
Raw Normal View History

pragma solidity >=0.6.0;
pragma experimental ABIEncoderV2;
contract AbiencoderV2Test {
struct Person {
string name;
uint age;
}
function defaultPerson() public pure returns (Person memory) {
return Person("Alice", 20);
}
}