Skip to content

Commit

Permalink
chore: rename to enableSymbolicStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
daejunpark committed Aug 26, 2024
1 parent cd01f67 commit 85e6b1c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/halmos/cheatcodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ class halmos_cheat_code:
0xBF72FA66: create_bytes32, # createBytes32(string)
0x3B0FA01B: create_address, # createAddress(string)
0x6E0BB659: create_bool, # createBool(string)
0xCC825563: symbolic_storage, # initEmptyStorage(address)
0xDC00BA4D: symbolic_storage, # enableSymbolicStorage(address)
}

@staticmethod
Expand Down
2 changes: 1 addition & 1 deletion tests/regression/test/Counter.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {SymTest} from "halmos-cheatcodes/SymTest.sol";
/// @custom:halmos --loop 4
contract CounterTest is Counter, SymTest {
function setUp() public {
svm.initEmptyStorage(address(this));
svm.enableSymbolicStorage(address(this));
}

function check_set(uint n) public {
Expand Down
4 changes: 2 additions & 2 deletions tests/regression/test/List.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {SymTest} from "halmos-cheatcodes/SymTest.sol";

contract ListTest is SymTest, Test, List {
function setUp() public {
svm.initEmptyStorage(address(this));
svm.enableSymbolicStorage(address(this));
}

function check_add(uint x) public {
Expand Down Expand Up @@ -42,7 +42,7 @@ contract ListTestTest is SymTest, Test {
function setUp() public {
list = new List();
list.add(1);
svm.initEmptyStorage(address(list));
svm.enableSymbolicStorage(address(list));
}

function check_add(uint x) public {
Expand Down
2 changes: 1 addition & 1 deletion tests/regression/test/Storage.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {SymTest} from "halmos-cheatcodes/SymTest.sol";

contract StorageTest is Storage, SymTest {
function setUp() public {
svm.initEmptyStorage(address(this));
svm.enableSymbolicStorage(address(this));
}

function check_setMap1(uint k, uint v) public {
Expand Down

0 comments on commit 85e6b1c

Please sign in to comment.