mirror of
https://github.com/Instadapp/yield-contract.git
synced 2024-07-29 21:47:29 +00:00
fixed bug
This commit is contained in:
parent
43ddff2d0f
commit
dc67cc09d1
|
@ -24,7 +24,7 @@ contract Flusher is Proxy {
|
||||||
|
|
||||||
function setBasic(address newImplementation) public {
|
function setBasic(address newImplementation) public {
|
||||||
require(_implementation() == address(0), "_implementation-logic-already-set");
|
require(_implementation() == address(0), "_implementation-logic-already-set");
|
||||||
require(newImplementation == address(0), "newImplementation-not-vaild");
|
require(newImplementation != address(0), "newImplementation-not-vaild");
|
||||||
bytes32 slot = _IMPLEMENTATION_SLOT;
|
bytes32 slot = _IMPLEMENTATION_SLOT;
|
||||||
|
|
||||||
// solhint-disable-next-line no-inline-assembly
|
// solhint-disable-next-line no-inline-assembly
|
||||||
|
|
Loading…
Reference in New Issue
Block a user