Skip to content

Commit

Permalink
beauty comments
Browse files Browse the repository at this point in the history
  • Loading branch information
adu-web3 committed Jul 9, 2024
1 parent 3af50b8 commit f7c9c49
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/core/NativeRestakingController.sol
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ abstract contract NativeRestakingController is
}

// The bytecode returned by `BEACON_PROXY_BYTECODE` and `EXO_CAPSULE_BEACON` address are actually fixed size of byte
// array,
// so it would not cause collision for encodePacked
// array, so it would not cause collision for encodePacked
// slither-disable-next-line encode-packed-collision
function createExoCapsule() public whenNotPaused nativeRestakingEnabled returns (address) {
require(
Expand Down
3 changes: 1 addition & 2 deletions src/core/Vault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ contract Vault is Initializable, VaultStorage, IVault {
}

// Though `safeTransferFrom` has arbitrary passed in `depositor` as sender, this function is only callable by
// `gateway`
// and `gateway` would make sure only the `msg.sender` would be the depositor.
// `gateway` and `gateway` would make sure only the `msg.sender` would be the depositor.
// slither-disable-next-line arbitrary-send-erc20
function deposit(address depositor, uint256 amount) external payable onlyGateway {
underlyingToken.safeTransferFrom(depositor, address(this), amount);
Expand Down
3 changes: 1 addition & 2 deletions src/storage/BootstrapStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,7 @@ contract BootstrapStorage is GatewayStorage {
}

// The bytecode returned by `BEACON_PROXY_BYTECODE` and `EXO_CAPSULE_BEACON` address are actually fixed size of byte
// array,
// so it would not cause collision for encodePacked
// array, so it would not cause collision for encodePacked
// slither-disable-next-line encode-packed-collision
function _deployVault(address underlyingToken) internal returns (IVault) {
Vault vault = Vault(
Expand Down

0 comments on commit f7c9c49

Please sign in to comment.