You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this is a really interesting proposal. It should however be done on the @openzeppelin-contracts repository. Can you please open an issue there?
See OpenZeppelin/openzeppelin-contracts#1802 (comment). We used extcodehash in the past but went back to extcodesize as it was shown to be more efficient. If this is no longer the case please open another issue.
🧐 Motivation
This is for saving gas by 300 unit.
📝 Details
The
extcodesize
uses 300 gas more thanextcodehash
to determine whether or not an address is a contract. Hence, this is pertaining to that.This line-27 refers to the
isContract
function inAddressUpgradeable.sol
file. This function is supposed to modified to this:The text was updated successfully, but these errors were encountered: