Skip to content

Commit

Permalink
cosmetic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
augustbleeds committed Feb 26, 2024
1 parent 08fdb4a commit 668ab22
Show file tree
Hide file tree
Showing 11 changed files with 1 addition and 165 deletions.
1 change: 0 additions & 1 deletion contracts/src/access_control/access_controller.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ mod AccessController {
use openzeppelin::access::ownable::ownable::OwnableComponent;

use chainlink::libraries::access_control::{AccessControlComponent, IAccessController};
// use chainlink::libraries::ownable::{OwnableComponent, IOwnable};
use chainlink::libraries::type_and_version::ITypeAndVersion;
use chainlink::libraries::upgradeable::{Upgradeable, IUpgradeable};

Expand Down
1 change: 0 additions & 1 deletion contracts/src/emergency/sequencer_uptime_feed.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ mod SequencerUptimeFeed {

use openzeppelin::access::ownable::ownable::OwnableComponent;

// use chainlink::libraries::ownable::{OwnableComponent, IOwnable};
use chainlink::libraries::access_control::{AccessControlComponent, IAccessController};
use chainlink::libraries::access_control::AccessControlComponent::InternalTrait as AccessControlInternalTrait;
use chainlink::libraries::type_and_version::ITypeAndVersion;
Expand Down
2 changes: 0 additions & 2 deletions contracts/src/libraries.cairo
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
mod ownable;
mod zownable;
mod access_control;
mod token;
mod upgradeable;
Expand Down
1 change: 0 additions & 1 deletion contracts/src/libraries/access_control.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ mod AccessControlComponent {
use zeroable::Zeroable;

use openzeppelin::access::ownable::ownable::OwnableComponent;
// use chainlink::libraries::ownable::{OwnableComponent};

use OwnableComponent::InternalImpl as OwnableInternalImpl;

Expand Down
155 changes: 0 additions & 155 deletions contracts/src/libraries/ownable.cairo

This file was deleted.

Empty file.
1 change: 0 additions & 1 deletion contracts/src/ocr2/aggregator.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ mod Aggregator {
use openzeppelin::token::erc20::interface::{IERC20, IERC20Dispatcher, IERC20DispatcherTrait};

use chainlink::utils::split_felt;
// use chainlink::libraries::ownable::{OwnableComponent, IOwnable};
use chainlink::libraries::access_control::{AccessControlComponent, IAccessController};
use chainlink::libraries::access_control::AccessControlComponent::InternalTrait as AccessControlInternalTrait;
use chainlink::libraries::upgradeable::{Upgradeable, IUpgradeable};
Expand Down
1 change: 0 additions & 1 deletion contracts/src/ocr2/aggregator_proxy.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ mod AggregatorProxy {

use chainlink::ocr2::aggregator::IAggregator;
use chainlink::ocr2::aggregator::Round;
// use chainlink::libraries::ownable::{OwnableComponent, IOwnable};
use chainlink::libraries::access_control::{AccessControlComponent, IAccessController};
use chainlink::libraries::access_control::AccessControlComponent::InternalTrait as AccessControlInternalTrait;
use chainlink::utils::split_felt;
Expand Down
1 change: 0 additions & 1 deletion contracts/src/tests/test_aggregator_proxy.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ use core::result::ResultTrait;
use chainlink::ocr2::mocks::mock_aggregator::{
MockAggregator, IMockAggregator, IMockAggregatorDispatcher, IMockAggregatorDispatcherTrait
};
// use chainlink::ocr2::aggregator::{IAggregator, IAggregatorDispatcher, IAggregatorDispatcherTrait};
use chainlink::ocr2::aggregator_proxy::AggregatorProxy;
use chainlink::ocr2::aggregator_proxy::AggregatorProxy::{
AggregatorProxyImpl, AggregatorProxyInternal, UpgradeableImpl
Expand Down
1 change: 0 additions & 1 deletion contracts/src/token/link_token.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ mod LinkToken {
use super::IMintableToken;
use openzeppelin::token::erc20::interface::{IERC20, IERC20Dispatcher, IERC20DispatcherTrait};
use chainlink::libraries::token::erc677::ERC677Component;
// use chainlink::libraries::ownable::{OwnableComponent, IOwnable};
use chainlink::libraries::type_and_version::ITypeAndVersion;
use chainlink::libraries::upgradeable::{Upgradeable, IUpgradeable};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ mod AggregatorPriceConsumerWithSequencer {
0 => {
assert(!report_stale, 'L2 seq up & report stale');
},
_ => {
1 | _ => {
assert(!report_stale, 'L2 seq down & report stale');
assert(false, 'L2 seq down & report ok');
}
Expand Down

0 comments on commit 668ab22

Please sign in to comment.