Skip to content

Commit

Permalink
(hub): non-Reentrant modifier had unused error code; remove
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminbollen committed Sep 25, 2024
1 parent 74a6435 commit 9f3a0df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hub/Hub.sol
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ contract Hub is Circles, TypeDefinitions, IHubErrors {
* @dev Reentrancy guard for nonReentrant functions.
* see https://soliditylang.org/blog/2024/01/26/transient-storage/
*/
modifier nonReentrant(uint8 _code) {
modifier nonReentrant() {
assembly {
if tload(0) { revert(0, 0) }
tstore(0, 1)
Expand Down Expand Up @@ -543,7 +543,7 @@ contract Hub is Circles, TypeDefinitions, IHubErrors {
FlowEdge[] calldata _flow,
Stream[] calldata _streams,
bytes calldata _packedCoordinates
) external nonReentrant(0) {
) external nonReentrant {
// first unpack the coordinates to array of uint16
uint16[] memory coordinates = _unpackCoordinates(_packedCoordinates, _flow.length);

Expand Down

0 comments on commit 9f3a0df

Please sign in to comment.