diff options
author | Fabio Berger <me@fabioberger.com> | 2018-09-29 21:22:33 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-09-29 21:22:33 +0800 |
commit | 2b6a9911f5f821114a65474e75f5ed52e8bad980 (patch) | |
tree | 98f80c9db5b8c89d7edfe965d990e00540b4e6ee /packages/sol-doc/test/fixtures/contracts/StructParamAndReturn.sol | |
parent | 005b7a55e866a735e86dc58ff62b0cf3301f59cd (diff) | |
download | dexon-sol-tools-2b6a9911f5f821114a65474e75f5ed52e8bad980.tar dexon-sol-tools-2b6a9911f5f821114a65474e75f5ed52e8bad980.tar.gz dexon-sol-tools-2b6a9911f5f821114a65474e75f5ed52e8bad980.tar.bz2 dexon-sol-tools-2b6a9911f5f821114a65474e75f5ed52e8bad980.tar.lz dexon-sol-tools-2b6a9911f5f821114a65474e75f5ed52e8bad980.tar.xz dexon-sol-tools-2b6a9911f5f821114a65474e75f5ed52e8bad980.tar.zst dexon-sol-tools-2b6a9911f5f821114a65474e75f5ed52e8bad980.zip |
Add test for methodSignature gen for methods with param/return structs
Diffstat (limited to 'packages/sol-doc/test/fixtures/contracts/StructParamAndReturn.sol')
-rw-r--r-- | packages/sol-doc/test/fixtures/contracts/StructParamAndReturn.sol | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/packages/sol-doc/test/fixtures/contracts/StructParamAndReturn.sol b/packages/sol-doc/test/fixtures/contracts/StructParamAndReturn.sol new file mode 100644 index 000000000..b9a7ccdbc --- /dev/null +++ b/packages/sol-doc/test/fixtures/contracts/StructParamAndReturn.sol @@ -0,0 +1,18 @@ +pragma solidity 0.4.24; +pragma experimental ABIEncoderV2; + + +contract StructParamAndReturn { + + struct Stuff { + address anAddress; + uint256 aNumber; + } + + /// @dev DEV_COMMENT + /// @param stuff STUFF_COMMENT + /// @return RETURN_COMMENT + function methodWithStructParamAndReturn(Stuff stuff) public pure returns(Stuff) { + return stuff; + } +} |