Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Foivos committed Jan 9, 2025
1 parent 873020e commit fadcba7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 28 deletions.
9 changes: 1 addition & 8 deletions contracts/InterchainTokenService.sol
Original file line number Diff line number Diff line change
Expand Up @@ -921,14 +921,7 @@ contract InterchainTokenService is
// slither-disable-next-line unused-return
bytes memory sourceTokenAddress = registeredTokenAddress(tokenId).toBytes();

emit LinkTokenStarted(
tokenId,
destinationChain,
sourceTokenAddress,
destinationTokenAddress,
tokenManagerType,
params
);
emit LinkTokenStarted(tokenId, destinationChain, sourceTokenAddress, destinationTokenAddress, tokenManagerType, params);

bytes memory payload = abi.encode(
MESSAGE_TYPE_LINK_TOKEN,
Expand Down
23 changes: 3 additions & 20 deletions test/InterchainTokenService.js
Original file line number Diff line number Diff line change
Expand Up @@ -874,8 +874,7 @@ describe('Interchain Token Service', () => {

it('Should revert on deploying a local token manager with interchain token manager type', async () => {
await expectRevert(
(gasOptions) =>
service.linkToken(salt, '', token.address, NATIVE_INTERCHAIN_TOKEN, wallet.address, 0, gasOptions),
(gasOptions) => service.linkToken(salt, '', token.address, NATIVE_INTERCHAIN_TOKEN, wallet.address, 0, gasOptions),
service,
'CannotDeploy',
[NATIVE_INTERCHAIN_TOKEN],
Expand All @@ -885,15 +884,7 @@ describe('Interchain Token Service', () => {
it('Should revert on deploying a remote token manager with interchain token manager type', async () => {
await expectRevert(
(gasOptions) =>
service.linkToken(
salt,
destinationChain,
token.address,
NATIVE_INTERCHAIN_TOKEN,
wallet.address,
0,
gasOptions,
),
service.linkToken(salt, destinationChain, token.address, NATIVE_INTERCHAIN_TOKEN, wallet.address, 0, gasOptions),
service,
'CannotDeploy',
[NATIVE_INTERCHAIN_TOKEN],
Expand Down Expand Up @@ -1090,7 +1081,6 @@ describe('Interchain Token Service', () => {
});

describe('Initialize remote custom token manager deployment', () => {

it('Should initialize a remote custom token manager deployment', async () => {
const salt = getRandomBytes32();
const tokenAddress = wallet.address;
Expand Down Expand Up @@ -1312,14 +1302,7 @@ describe('Interchain Token Service', () => {
});

it('Should revert on initiating an interchain token transfer for lockUnlockFee with reentrant token', async () => {
const [, , tokenId] = await deployFunctions.lockUnlockFee(
service,
'Test Token lockUnlockFee',
'TT',
12,
amount,
'reentrant',
);
const [, , tokenId] = await deployFunctions.lockUnlockFee(service, 'Test Token lockUnlockFee', 'TT', 12, amount, 'reentrant');

const revertData = keccak256(toUtf8Bytes('TokenTransferFailed()')).substring(0, 10);

Expand Down

0 comments on commit fadcba7

Please sign in to comment.