Skip to content

Commit

Permalink
fix: machinery to abstract without public default function
Browse files Browse the repository at this point in the history
  • Loading branch information
b0dhidharma committed Jan 28, 2022
1 parent 635ce3d commit ad91594
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/contract-utils/contracts/utils/Machinery.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import '@openzeppelin/contracts/utils/structs/EnumerableSet.sol';
import '../interfaces/utils/IMachinery.sol';
import '../interfaces/mechanics/IMechanicsRegistry.sol';

contract Machinery is IMachinery {
abstract contract Machinery is IMachinery {
using EnumerableSet for EnumerableSet.AddressSet;

IMechanicsRegistry internal _mechanicsRegistry;
Expand All @@ -19,9 +19,7 @@ contract Machinery is IMachinery {
_;
}

function setMechanicsRegistry(address __mechanicsRegistry) external virtual override {
_setMechanicsRegistry(__mechanicsRegistry);
}
function setMechanicsRegistry(address __mechanicsRegistry) external virtual override;

function _setMechanicsRegistry(address __mechanicsRegistry) internal {
_mechanicsRegistry = IMechanicsRegistry(__mechanicsRegistry);
Expand Down

0 comments on commit ad91594

Please sign in to comment.