diff --git a/src/lib/tree/binary/BinaryMerkleTree.sol b/src/lib/tree/binary/BinaryMerkleTree.sol index 0f31f82..7e57c83 100644 --- a/src/lib/tree/binary/BinaryMerkleTree.sol +++ b/src/lib/tree/binary/BinaryMerkleTree.sol @@ -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]; } diff --git a/src/lib/tree/binary/test/BinaryMerkleTree.t.sol b/src/lib/tree/binary/test/BinaryMerkleTree.t.sol index 0ce7d14..32b4316 100644 --- a/src/lib/tree/binary/test/BinaryMerkleTree.t.sol +++ b/src/lib/tree/binary/test/BinaryMerkleTree.t.sol @@ -39,7 +39,6 @@ import "../BinaryMerkleTree.sol"; * 0xc1ad6548cb4c7663110df219ec8b36ca63b01158956f4be31a38a88d0c7f7071 * */ - contract BinaryMerkleProofTest is DSTest { Vm private constant vm = Vm(address(uint160(uint256(keccak256("hevm cheat code"))))); diff --git a/src/lib/tree/namespace/test/NamespaceMerkleMultiproof.t.sol b/src/lib/tree/namespace/test/NamespaceMerkleMultiproof.t.sol index 69e4508..fcaf590 100644 --- a/src/lib/tree/namespace/test/NamespaceMerkleMultiproof.t.sol +++ b/src/lib/tree/namespace/test/NamespaceMerkleMultiproof.t.sol @@ -45,7 +45,6 @@ import "../NamespaceMerkleTree.sol"; * 0x0000000000000000000000000000000000000000000000000000000010 0x0000000000000000000000000000000000000000000000000000000010 0x5b3328b03a538d627db78668034089cb395f63d05b24fdf99558d36fe991d268 * */ - contract NamespaceMerkleMultiproofTest is DSTest { function setUp() external {} diff --git a/src/lib/tree/namespace/test/NamespaceMerkleTree.t.sol b/src/lib/tree/namespace/test/NamespaceMerkleTree.t.sol index 82cfdb3..5b1fe26 100644 --- a/src/lib/tree/namespace/test/NamespaceMerkleTree.t.sol +++ b/src/lib/tree/namespace/test/NamespaceMerkleTree.t.sol @@ -46,7 +46,6 @@ import "../../Constants.sol"; * 0x0000000000000000000000000000000000000000000000000000000010 0x0000000000000000000000000000000000000000000000000000000040 0x34e6541306dc4e57a5a2a9ef57a46d5705ed09efb8c6a02580d3a972922b6862 * */ - contract NamespaceMerkleTreeTest is DSTest { function setUp() external {} diff --git a/src/lib/verifier/DAVerifier.sol b/src/lib/verifier/DAVerifier.sol index a102e78..b9e86f5 100644 --- a/src/lib/verifier/DAVerifier.sol +++ b/src/lib/verifier/DAVerifier.sol @@ -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]; }