Skip to content

Commit

Permalink
Fix withdrawing
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmetson committed Nov 29, 2023
1 parent 185acbe commit 528bcad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/hardhat/contracts/Registrar.sol
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ contract Registrar is Ownable {
* The function can only be called by the owner of the contract as defined by the isOwner modifier
*/
function withdraw() public onlyOwner {
(bool success, ) = owner.call{ value: address(this).balance }("");
(bool success, ) = owner().call{ value: address(this).balance }("");
require(success, "Failed to send Ether");
}

Expand Down

0 comments on commit 528bcad

Please sign in to comment.