Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: forge fmt #272

Merged
merged 2 commits into from
Jan 3, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lib/tree/binary/BinaryMerkleTree.sol
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ library BinaryMerkleTree {
if (_begin > _data.length || _end > _data.length) {
revert("Invalid range: _begin or _end are out of bounds");
}
bytes32[] memory out = new bytes32[](_end-_begin);
bytes32[] memory out = new bytes32[](_end - _begin);
for (uint256 i = _begin; i < _end; i++) {
out[i - _begin] = _data[i];
}
Expand Down
1 change: 0 additions & 1 deletion src/lib/tree/binary/test/BinaryMerkleTree.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ import "../BinaryMerkleTree.sol";
* 0xc1ad6548cb4c7663110df219ec8b36ca63b01158956f4be31a38a88d0c7f7071
*
*/

contract BinaryMerkleProofTest is DSTest {
Vm private constant vm = Vm(address(uint160(uint256(keccak256("hevm cheat code")))));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ import "../NamespaceMerkleTree.sol";
* 0x0000000000000000000000000000000000000000000000000000000010 0x0000000000000000000000000000000000000000000000000000000010 0x5b3328b03a538d627db78668034089cb395f63d05b24fdf99558d36fe991d268
*
*/

contract NamespaceMerkleMultiproofTest is DSTest {
function setUp() external {}

Expand Down
1 change: 0 additions & 1 deletion src/lib/tree/namespace/test/NamespaceMerkleTree.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ import "../../Constants.sol";
* 0x0000000000000000000000000000000000000000000000000000000010 0x0000000000000000000000000000000000000000000000000000000040 0x34e6541306dc4e57a5a2a9ef57a46d5705ed09efb8c6a02580d3a972922b6862
*
*/

contract NamespaceMerkleTreeTest is DSTest {
function setUp() external {}

Expand Down
2 changes: 1 addition & 1 deletion src/lib/verifier/DAVerifier.sol
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ library DAVerifier {
if (_begin > _data.length || _end > _data.length) {
return (_data, ErrorCodes.OutOfBoundsRange);
}
bytes[] memory out = new bytes[](_end-_begin);
bytes[] memory out = new bytes[](_end - _begin);
for (uint256 i = _begin; i < _end; i++) {
out[i - _begin] = _data[i];
}
rach-id marked this conversation as resolved.
Show resolved Hide resolved
Expand Down
Loading