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
But the usage of transient keyword makes the pragma wrong.
Root Cause
In HatsSignerGate.sol:2, the pragma is false since the compiler will not understand the transient keyword for solidity versions <0.8.27
Internal pre-conditions
No response
External pre-conditions
No response
Attack Path
No response
Impact
The compiler will not be able to compile depending on the pragma version.
PoC
No response
Mitigation
Change pragma to:
pragma solidity>=0.8.27;
For judging:
Some people will invalidate because of this rule:
Using Solidity versions that support EVM opcodes that don't work on networks on which the protocol is deployed is not a valid issue because one can manage compilation flags to compile for past EVM versions on newer Solidity versions.
But note that here it is different: the compiler will not work for most of compiler versions. It is not due to opcodes that don't work on networks on which the protocol is deployed.
The text was updated successfully, but these errors were encountered:
Japy69
Medium
Wrong pragma
Summary
The pragma used in
HatsSignerGate.sol
is:But the usage of transient keyword makes the pragma wrong.
Root Cause
In
HatsSignerGate.sol:2
, the pragma is false since the compiler will not understand the transient keyword for solidity versions <0.8.27Internal pre-conditions
No response
External pre-conditions
No response
Attack Path
No response
Impact
The compiler will not be able to compile depending on the pragma version.
PoC
No response
Mitigation
Change pragma to:
For judging:
Some people will invalidate because of this rule:
But note that here it is different: the compiler will not work for most of compiler versions. It is not due to opcodes that don't work on networks on which the protocol is deployed.
The text was updated successfully, but these errors were encountered: