Skip to content

Commit

Permalink
add logic to initialize _status variable in reentrancyGuard contract
Browse files Browse the repository at this point in the history
  • Loading branch information
RnkSngh committed May 7, 2024
1 parent 6d867ef commit da685f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/core/Dispatcher.sol
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ contract Dispatcher is OwnableUpgradeable, UUPSUpgradeable, ReentrancyGuard, IDi
* @dev This method should be called only once during contract deployment.
* @dev For contract upgarades, which need to reinitialize the contract, use the reinitializer modifier.
*/
function initialize(string memory initPortPrefix) public virtual initializer {
function initialize(string memory initPortPrefix) public virtual initializer nonReentrant {
if (bytes(initPortPrefix).length == 0) {
revert IBCErrors.invalidPortPrefix();
}
Expand Down

0 comments on commit da685f1

Please sign in to comment.