Skip to content

Commit

Permalink
reduce OpenLevV1.sol size
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatel committed Dec 8, 2022
1 parent 922251a commit 51b54c1
Show file tree
Hide file tree
Showing 5 changed files with 315 additions and 205 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Node.js CI

on:
push:
branches: [ main, tax-token-support, bsc, dev, limit-order ]
branches: [ main, tax-token-support, bsc, dev, limit-order,reduce-contract-size ]
pull_request:
branches: [ main ]

Expand Down
5 changes: 4 additions & 1 deletion contracts/Adminable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ abstract contract Adminable {
}

modifier onlyAdmin() {
require(msg.sender == admin, "caller must be admin");
checkAdmin();
_;
}
modifier onlyAdminOrDeveloper() {
Expand Down Expand Up @@ -46,4 +46,7 @@ abstract contract Adminable {
emit NewPendingAdmin(oldPendingAdmin, pendingAdmin);
}

function checkAdmin() private view {
require(msg.sender == admin, "caller must be admin");
}
}
Loading

0 comments on commit 51b54c1

Please sign in to comment.