ethers-contract 1.0.2

Smart contract bindings for the ethers-rs crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
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);
    }
}