2023-08-09 16:16:14 +00:00
|
|
|
contract test {
|
|
|
|
/// @notice Multiplies `a` by 7
|
|
|
|
/// and then adds `b`
|
|
|
|
function mul_and_add(uint a, uint256 b) public returns (uint256 d) {
|
|
|
|
return (a * 7) + b;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// ----
|
|
|
|
// ----
|
2023-08-21 10:32:33 +00:00
|
|
|
// :test devdoc
|
|
|
|
// {
|
|
|
|
// "kind": "dev",
|
|
|
|
// "methods": {},
|
|
|
|
// "version": 1
|
|
|
|
// }
|
|
|
|
//
|
2023-08-09 16:16:14 +00:00
|
|
|
// :test userdoc
|
|
|
|
// {
|
2023-08-09 17:33:35 +00:00
|
|
|
// "kind": "user",
|
2023-08-09 16:16:14 +00:00
|
|
|
// "methods":
|
|
|
|
// {
|
|
|
|
// "mul_and_add(uint256,uint256)":
|
|
|
|
// {
|
|
|
|
// "notice": "Multiplies `a` by 7 and then adds `b`"
|
|
|
|
// }
|
2023-08-09 17:33:35 +00:00
|
|
|
// },
|
|
|
|
// "version": 1
|
2023-08-09 16:16:14 +00:00
|
|
|
// }
|