Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
milapsheth committed Nov 12, 2024
1 parent f130dbe commit 31a867e
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions test/InterchainTokenFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,35 @@ describe('InterchainTokenFactory', () => {
[],
);

await expectRevert(
(gasOptions) =>
tokenFactory.deployRemoteInterchainTokenWithMinter(salt, AddressZero, destinationChain, wallet.address, gasValue, {
...gasOptions,
value: gasValue,
}),
tokenFactory,
'InvalidMinter',
[AddressZero],
);

await expectRevert(
(gasOptions) =>
tokenFactory.approveDeployRemoteInterchainToken(wallet.address, salt, 'untrusted-chain', wallet.address, gasOptions),
tokenFactory,
'InvalidChainName',
[],
);

await expectRevert(
(gasOptions) =>
tokenFactory
.connect(otherWallet)
.approveDeployRemoteInterchainToken(wallet.address, salt, destinationChain, wallet.address, gasOptions),
tokenFactory,
'InvalidMinter',
[otherWallet.address],
);

await expect(tokenFactory.approveDeployRemoteInterchainToken(wallet.address, salt, destinationChain, wallet.address))
.to.emit(tokenFactory, 'DeployRemoteInterchainTokenApproval')
.withArgs(wallet.address, wallet.address, tokenId, destinationChain, arrayify(wallet.address));
Expand Down

0 comments on commit 31a867e

Please sign in to comment.