Skip to content

Commit

Permalink
fix: inherit from Validator interface (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJabberwock authored Aug 19, 2024
1 parent 35dbd4a commit 0954a47
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion solidity/contracts/Module.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {IOracle} from '../interfaces/IOracle.sol';

import {Validator} from './Validator.sol';

abstract contract Module is IModule, Validator {
abstract contract Module is Validator, IModule {
constructor(IOracle _oracle) Validator(_oracle) {}

/**
Expand Down
3 changes: 2 additions & 1 deletion solidity/interfaces/IModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
pragma solidity ^0.8.19;

import {IOracle} from './IOracle.sol';
import {IValidator} from './IValidator.sol';

/**
* @title Module
* @notice Abstract contract to be inherited by all modules
*/
interface IModule {
interface IModule is IValidator {
/*///////////////////////////////////////////////////////////////
EVENTS
//////////////////////////////////////////////////////////////*/
Expand Down
1 change: 1 addition & 0 deletions solidity/interfaces/IValidator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ interface IValidator {
* @notice Thrown when the dispute provided does not exist
*/
error Validator_InvalidDispute();

/*///////////////////////////////////////////////////////////////
VARIABLES
//////////////////////////////////////////////////////////////*/
Expand Down

0 comments on commit 0954a47

Please sign in to comment.