Skip to content

Commit

Permalink
fix: slither
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroEkkusu committed Dec 1, 2023
1 parent 586ad45 commit 2e19df9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions contracts/root/staking/CustomSupernetManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ contract CustomSupernetManager is ICustomSupernetManager, Ownable2StepUpgradeabl
revert Unauthorized("CustomSupernetManager: UNDEFINED_ROOT_ERC20_PREDICATE");
}

// slither-disable-next-line reentrancy-events
IERC20 nativeTokenRoot = IERC20(_rootERC20Predicate.nativeTokenRoot());
if (address(nativeTokenRoot) == address(0)) {
revert Unauthorized("CustomSupernetManager: UNDEFINED_NATIVE_TOKEN_ROOT");
Expand All @@ -157,7 +156,7 @@ contract CustomSupernetManager is ICustomSupernetManager, Ownable2StepUpgradeabl

// we need to track EOAs as well in the genesis set, in order to be able to query genesisBalances mapping
_genesis.insert(msg.sender, 0);
// slither-disable-next-line reentrancy-events
// slither-disable-next-line reentrancy-benign
genesisBalances[msg.sender] += amount;

// lock native tokens on the root erc20 predicate
Expand Down

0 comments on commit 2e19df9

Please sign in to comment.