While working on the Good Samaritan challenge, I encountered an error in Visual Studio Code indicating that the .isContract() function is no longer available in the Address library.
Found this pull request in the OpenZeppelin repository, which details the removal of the .isContract() function. The recommended approach is to use address(...).code.length > 0 instead...
While working on the
Good Samaritan
challenge, I encountered an error in Visual Studio Code indicating that the.isContract()
function is no longer available in the Address library.Found this pull request in the OpenZeppelin repository, which details the removal of the
.isContract()
function. The recommended approach is to useaddress(...).code.length > 0
instead...Thanks!