Skip to content

Commit

Permalink
made lint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Foivos committed Jul 27, 2023
1 parent f1723c3 commit bc8ed59
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
14 changes: 5 additions & 9 deletions contracts/interchain-token-service/InterchainTokenService.sol
Original file line number Diff line number Diff line change
Expand Up @@ -693,28 +693,24 @@ contract InterchainTokenService is
address distributor;
address mintTo;

if(distributorBytes.length == 0) {
if (distributorBytes.length == 0) {
distributor = tokenManagerAddress;
} else {
distributor = distributorBytes.toAddress();
}
if(mintToBytes.length == 0) {

if (mintToBytes.length == 0) {
mintTo = distributor;
} else {
mintTo = mintToBytes.toAddress();
}

if(operatorBytes.length == 0) {
if (operatorBytes.length == 0) {
operatorBytes = address(this).toBytes();
}

_deployStandardizedToken(tokenId, distributor, name, symbol, decimals, mintAmount, mintTo);
_deployTokenManager(
tokenId,
TokenManagerType.MINT_BURN,
abi.encode(operatorBytes, tokenAddress)
);
_deployTokenManager(tokenId, TokenManagerType.MINT_BURN, abi.encode(operatorBytes, tokenAddress));
}

/**
Expand Down
4 changes: 3 additions & 1 deletion contracts/interfaces/IRemoteAddressValidator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ interface IRemoteAddressValidator {
/**
* @notice Returns the interchain token address
*/
function interchainTokenServiceAddress() external view returns (address);
function interchainTokenServiceAddress() external view returns (address);

/**
* @notice Returns the interchain token address to string to lower case hash, which is used to compare with incoming calls.
*/
function interchainTokenServiceAddressHash() external view returns (bytes32);

/**
* @dev Validates that the sender is a valid interchain token service address
* @param sourceChain Source chain of the transaction
Expand Down

0 comments on commit bc8ed59

Please sign in to comment.