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

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

15 lines
275 B
Solidity
Raw Normal View History

// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.10;
contract MyContract {
struct Point {
uint256 x;
uint256 y;
}
event NewPoint(Point x);
function submitPoint(Point memory _point) public {
emit NewPoint(_point);
}
}