From 0cd8a3d6fd4d8adc89ec63a430280026bc0017d1 Mon Sep 17 00:00:00 2001 From: pragmaxim Date: Fri, 20 Sep 2024 09:59:52 +0200 Subject: [PATCH] fix linter errors --- packages/web3/src/signer/signer.ts | 11 ++++++----- test/tipping-multi-group.test.ts | 11 ++++++++--- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/packages/web3/src/signer/signer.ts b/packages/web3/src/signer/signer.ts index d5edf29d7..4550e596f 100644 --- a/packages/web3/src/signer/signer.ts +++ b/packages/web3/src/signer/signer.ts @@ -151,11 +151,12 @@ export abstract class SignerProviderSimple extends SignerProvider { async signMultiGroupTransferTx(params: SignTransferTxParams): Promise { const results = await this.buildMultiGroupTransferTx(params) - const signedTxResults = await Promise.all(results.map(async (tx) => { - const signature = await this.signRaw(params.signerAddress, tx.txId) - return { ...tx, signature } - })) - + const signedTxResults = await Promise.all( + results.map(async (tx) => { + const signature = await this.signRaw(params.signerAddress, tx.txId) + return { ...tx, signature } + }) + ) return signedTxResults } diff --git a/test/tipping-multi-group.test.ts b/test/tipping-multi-group.test.ts index a2e57aac1..17859049c 100644 --- a/test/tipping-multi-group.test.ts +++ b/test/tipping-multi-group.test.ts @@ -88,7 +88,7 @@ describe('tippingbot', function () { const signerAddress = (await testWallet.getSelectedAccount()).address const users = ['user0', 'user1', 'user2'] - const destinations = users.map(user => ({ + const destinations = users.map((user) => ({ address: tippingBot.addUser(user).address, attoAlphAmount: convertAlphAmountWithDecimals('1.0')! })) @@ -104,8 +104,13 @@ describe('tippingbot', function () { expect(balance).toEqual(1.0) } - await tippingBot.sendTips('user0', [['user1', 0.1], ['user2', 0.2]]) - await tippingBot.sendTips('user1', [['user2', 0.3]]) + await tippingBot.sendTips('user0', [ + ['user1', 0.1], + ['user2', 0.2] + ]) + await tippingBot.sendTips('user1', [ + ['user2', 0.3] + ]) // check user balance const balance0 = await tippingBot.getUserBalance('user0')