Skip to content

Commit

Permalink
nit: rename functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
0xfps committed Aug 27, 2024
1 parent 8ff827d commit e7fa1f3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pragma solidity ^0.8.0;
contract Yul {
// bytes4(keccak256(NumberLess())) => 0x994823ad.
function revertWithArgs(uint256 num) public pure {
function revertWithoutArgs(uint256 num) public pure {
assembly {
if lt(num, 0x06) {
mstore(0x80, 0x994823ad) // 4 bytes.
Expand All @@ -51,7 +51,7 @@ pragma solidity ^0.8.0;
contract Yul {
// bytes4(keccak256(NumberLessThan6(uint256))) => 0x8205edea
function revertWithErrorMessage(uint256 num) public pure {
function revertWithArguments(uint256 num) public pure {
assembly {
if lt(num, 0x06) {
mstore(0x80, 0x8205edea)
Expand Down

0 comments on commit e7fa1f3

Please sign in to comment.