From 78176daab93fa1a3e186ea064b00d3d2a137c176 Mon Sep 17 00:00:00 2001 From: AbdulSamad <47020656+4samad@users.noreply.github.com> Date: Wed, 6 Jul 2022 02:14:52 +0530 Subject: [PATCH] Update zombiehelper.sol the address needs to be payable to receive eth. --- lesson-6/chapter-9/zombiehelper.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lesson-6/chapter-9/zombiehelper.sol b/lesson-6/chapter-9/zombiehelper.sol index 2cda9ec..8313075 100644 --- a/lesson-6/chapter-9/zombiehelper.sol +++ b/lesson-6/chapter-9/zombiehelper.sol @@ -12,7 +12,7 @@ contract ZombieHelper is ZombieFeeding { } function withdraw() external onlyOwner { - address _owner = owner(); + address payable _owner = address(uint(owner())); _owner.transfer(address(this).balance); }