Open hats-bug-reporter[bot] opened 5 months ago
this
is deprecated and replaced with address(this)
. Openzeppelin also uses address(this)
while computing domainSeparator which can be checked here
@alfredolopez80 Can you please check it.
is a issue but low
Github username: -- Twitter username: -- Submission hash (on-chain): 0x2a3b4ace63d3b22f2e6028dbbb3c507ca3448da906cc57c4779129556d6f951a Severity: low
Description: Description\
In
Helpers.sol
,domainSeparator()
is calculated as:The issue is that,
this
keyword is used for the smart contract when the solidity version is below 0.5.0, therefore use ofthis
is deprecated in v5.0.0 .The contracts have used solidity
0.8.23
so use of deprecatedthis
should be avoided to prevent unexpected behaviour in contracts. Its always recommended to not use deprecated varibales/functions, etc.Recommendation to fix\ With solidity 0.8.23, use
address(this)
, instead ofthis
.