Add a modifier check or a bool variable is stored in storage, and stored as true at the first initialization, and only initializes the contract, only when it is set to false
If the intention is not to allow re-initialization every time, then a reinitialzation function should be implemented
Contracts
BridgeEscrow
,L2GraphToken
,L1GraphTokenGateway
,and can always be reinitializedAffected contracts and lines of code
Recommended mitigation check
bool
variable is stored in storage, and stored astrue
at the first initialization, and only initializes the contract, only when it is set to falsemodifier initialized { if(initialized) revert(); }