Skip to content

Commit

Permalink
Merge branch 'main' into refactor/skip-interest-accrual
Browse files Browse the repository at this point in the history
  • Loading branch information
makcandrov committed Jul 31, 2023
2 parents 1e28a92 + bd7b66e commit ae177bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Blue.sol
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ contract Blue is IFlashLender {

// Only owner functions.

function transferOwnership(address newOwner) external onlyOwner {
function setOwner(address newOwner) external onlyOwner {
owner = newOwner;
}

Expand Down
4 changes: 2 additions & 2 deletions test/forge/Blue.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ contract BlueTest is
Blue blue2 = new Blue(oldOwner);

vm.prank(oldOwner);
blue2.transferOwnership(newOwner);
blue2.setOwner(newOwner);
assertEq(blue2.owner(), newOwner, "owner");
}

Expand All @@ -146,7 +146,7 @@ contract BlueTest is

vm.prank(attacker);
vm.expectRevert(bytes(Errors.NOT_OWNER));
blue2.transferOwnership(newOwner);
blue2.setOwner(newOwner);
}

function testEnableIrmWhenNotOwner(address attacker, IIrm newIrm) public {
Expand Down

0 comments on commit ae177bf

Please sign in to comment.