Skip to content

Commit

Permalink
Fix audittens i05 (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
StanislavBreadless authored Nov 29, 2024
1 parent 6bd1fb6 commit db41088
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions l1-contracts/contracts/bridge/ntv/NativeTokenVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ abstract contract NativeTokenVault is INativeTokenVault, IAssetHandler, Ownable2
}
_handleChainBalanceDecrease(_originChainId, _assetId, amount, false);
IBridgedStandardToken(token).bridgeMint(receiver, amount);
emit BridgeMint(_originChainId, _assetId, receiver, amount);
}

function _bridgeMintNativeToken(
Expand All @@ -163,7 +162,6 @@ abstract contract NativeTokenVault is INativeTokenVault, IAssetHandler, Ownable2

_handleChainBalanceDecrease(_originChainId, _assetId, amount, true);
_withdrawFunds(_assetId, receiver, token, amount);
emit BridgeMint(_originChainId, _assetId, receiver, amount);
}

function _withdrawFunds(bytes32 _assetId, address _to, address _token, uint256 _amount) internal virtual;
Expand Down

0 comments on commit db41088

Please sign in to comment.