Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Foivos committed Jan 10, 2025
1 parent de53714 commit 5bcb97a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions contracts/TokenHandler.sol
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,12 @@ contract TokenHandler is ITokenHandler, ITokenManagerType, ReentrancyGuard, Crea
// This is done here because InterchainToken bytecode needs to be fixed.
if (tokenManagerType == uint256(TokenManagerType.NATIVE_INTERCHAIN_TOKEN)) {
IMinter(tokenManager.tokenAddress()).transferMintership(address(tokenManager));
// For lock/unlock token managers, the ITS contract needs an approval from the token manager to transfer tokens on its behalf.
} else if (tokenManagerType == uint256(TokenManagerType.LOCK_UNLOCK) || tokenManagerType == uint256(TokenManagerType.LOCK_UNLOCK_FEE)) {
// For lock/unlock token managers, the ITS contract needs an approval from the token manager to transfer tokens on its behalf.
} else if (
tokenManagerType == uint256(TokenManagerType.LOCK_UNLOCK) || tokenManagerType == uint256(TokenManagerType.LOCK_UNLOCK_FEE)
) {
tokenManager.approveService();
}
}
}

function _transferTokenFrom(address tokenAddress, address from, address to, uint256 amount) internal {
Expand Down

0 comments on commit 5bcb97a

Please sign in to comment.