Skip to content

Commit b167308

Browse files
committed
Add note to milestone_3.sol
1 parent 4288a05 commit b167308

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

integration/stylus/milestone_3.sol

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,25 @@
11
// SPDX-License-Identifier: UNLICENSED
22
pragma solidity >=0.8.0;
33

4+
// This contract tests the Stylus imports required for the Solang grant's third milestone:
5+
//
6+
// - account_balance
7+
// - account_code
8+
// - account_code_size
9+
// - account_codehash
10+
// - native_keccak256
11+
// - math_div
12+
// - math_mod
13+
// - math_pow
14+
// - math_add_mod
15+
// - math_mul_mod
16+
// - tx_gas_price
17+
//
18+
// All but the `math_...` functions are tested by the first function, `test`. The `math_...`
19+
// functions are tested individually by their own functions.
20+
//
21+
// This contract is deployed and called by `tests/stylus_tests/milestone_3.rs`.
22+
423
contract C {
524
function test() public view returns (uint256, bytes32, bytes32, uint256) {
625
bytes memory code = address(this).code;

0 commit comments

Comments
 (0)