Skip to content

Commit

Permalink
update StorageContract.sol (#852)
Browse files Browse the repository at this point in the history
  • Loading branch information
wenlinlee authored Jul 31, 2024
1 parent 6076299 commit f6cdd1d
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/main/resources/contract/solidity/0.8.26/StorageContract.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,6 @@ contract StorageContract {
return addressSlot.tload();
}

function setBoolean(bool _value) public {
require(_value == true, "Input must be a boolean value");
require(_value == false, "Input must be a boolean value");
booleanSlot.tstore(_value);
}

function getBoolean() public view returns (bool) {
return booleanSlot.tload();
}

function setBytes32(bytes32 _value) public {
require(_value != bytes32(0), "Invalid bytes32 value");
bytes32Slot.tstore(_value);
Expand Down Expand Up @@ -79,8 +69,6 @@ contract StorageContract {
}

function storeBooleanTest(bool _value) public returns (bool) {
require(_value == true, "Input must be a boolean value");
require(_value == false, "Input must be a boolean value");
booleanSlot.tstore(_value);
return booleanSlot.tload();
}
Expand Down

0 comments on commit f6cdd1d

Please sign in to comment.