Skip to content

Commit

Permalink
fixed a test and a test name
Browse files Browse the repository at this point in the history
  • Loading branch information
Foivos committed Dec 20, 2024
1 parent ab264ac commit 862eeb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/InterchainTokenFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ describe('InterchainTokenFactory', () => {
await checkRoles(tokenManager, minter);
});

it('Should register a token if the mint amount is zero and minter is the zero address', async () => {
it('Should revert when trying to register a token if the mint amount is zero and minter is the zero address', async () => {
const salt = keccak256('0x123456');
tokenId = await tokenFactory.interchainTokenId(wallet.address, salt);

Expand Down
4 changes: 2 additions & 2 deletions test/InterchainTokenService.js
Original file line number Diff line number Diff line change
Expand Up @@ -909,13 +909,13 @@ describe('Interchain Token Service', () => {
);
});

it('Should revert on deploying a token manager with an empty token', async () => {
it('Should revert on deploying a token manager if token handler post deploy fails', async () => {
const params = defaultAbiCoder.encode(['bytes', 'address'], [wallet.address, AddressZero]);

await expectRevert(
(gasOptions) => service.deployTokenManager(salt, '', LOCK_UNLOCK, params, 0, gasOptions),
service,
'TokenManagerDeploymentFailed',
'PostDeployFailed',
);
});

Expand Down

0 comments on commit 862eeb4

Please sign in to comment.