From 31a867e660ebcdfc11737c4cd15de14b6c79885f Mon Sep 17 00:00:00 2001 From: Milap Sheth Date: Wed, 13 Nov 2024 05:59:35 +0700 Subject: [PATCH] prettier --- test/InterchainTokenFactory.js | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/test/InterchainTokenFactory.js b/test/InterchainTokenFactory.js index 219c2c2b..508142f6 100644 --- a/test/InterchainTokenFactory.js +++ b/test/InterchainTokenFactory.js @@ -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));