Skip to content

Commit

Permalink
Add edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
b00ste committed May 17, 2023
1 parent fb32c2d commit 2f2689e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion examples/contracts/Bar.sol
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ contract Bar is IBar {
function set(T memory t) external { }

/// @notice Cool function bro
/// @custom:requirement Check this requirement
/// @custom:requirement Check first requirement
/// @custom:requirement Check second requirement
function boop(uint256 bar) external { }

/// @notice Alt cool function bro
Expand Down
3 changes: 2 additions & 1 deletion examples/docs/Bar.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
}
},
"outputs": {},
"notice": "Cool function bro"
"notice": "Cool function bro",
"custom:requirement": "Check first requirementCheck second requirement"
},
"boop(uint256,uint256)": {
"stateMutability": "nonpayable",
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/Bar.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function boop(uint256 bar) external nonpayable

Cool function bro


**Requirement:** *Check first requirementCheck second requirement*



Expand Down
3 changes: 2 additions & 1 deletion examples/docs/IBar.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
}
},
"notice": "Emitted when transfer",
"details": "Transfer some stuff"
"details": "Transfer some stuff",
"custom:danger": "This event exposes private info"
}
},
"errors": {
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/IBar.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ event Transfer(uint256 foo)
Emitted when transfer
*Transfer some stuff*


**Danger:** *This event exposes private info*


#### Parameters
Expand Down

0 comments on commit 2f2689e

Please sign in to comment.