From f150ff15b7d8cc779c4e53322ca66b9ce1da750e Mon Sep 17 00:00:00 2001 From: ahramy Date: Tue, 5 Nov 2024 12:33:06 -0800 Subject: [PATCH] Update InterchainTokenService.js --- test/InterchainTokenService.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/test/InterchainTokenService.js b/test/InterchainTokenService.js index 0f427258..da89bf76 100644 --- a/test/InterchainTokenService.js +++ b/test/InterchainTokenService.js @@ -2780,14 +2780,14 @@ describe('Interchain Token Service', () => { const tokenFlowLimit = await service.flowLimit(tokenId); expect(tokenFlowLimit).to.eq(flowLimit); - let flowIn = await service.flowInAmount(tokenId); - let flowOut = await service.flowOutAmount(tokenId); + const flowIn = await service.flowInAmount(tokenId); + const flowOut = await service.flowOutAmount(tokenId); expect(flowIn).to.eq(sendAmount); expect(flowOut).to.eq(sendAmount); - let newFlowLimit = MaxUint256; - let newSendAmount = 1; + const newFlowLimit = MaxUint256; + const newSendAmount = 1; await tokenManager.setFlowLimit(newFlowLimit).then((tx) => tx.wait); @@ -2811,18 +2811,18 @@ describe('Interchain Token Service', () => { }); it('Should revert if the flow addition overflows', async () => { - let newFlowLimit = MaxUint256; - let newSendAmount = MaxUint256; - const tokenFlowLimit = await service.flowLimit(tokenId); expect(tokenFlowLimit).to.eq(MaxUint256); - let flowIn = await service.flowInAmount(tokenId); - let flowOut = await service.flowOutAmount(tokenId); + const flowIn = await service.flowInAmount(tokenId); + const flowOut = await service.flowOutAmount(tokenId); expect(flowIn).to.eq(sendAmount); expect(flowOut).to.eq(sendAmount); + const newFlowLimit = MaxUint256; + const newSendAmount = MaxUint256; + await tokenManager.setFlowLimit(newFlowLimit).then((tx) => tx.wait); const errorSignatureHash = id('FlowAdditionOverflow(uint256,uint256,address)');