Skip to content

Commit

Permalink
fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pragmaxim committed Sep 20, 2024
1 parent c011269 commit 0cd8a3d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
11 changes: 6 additions & 5 deletions packages/web3/src/signer/signer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,12 @@ export abstract class SignerProviderSimple extends SignerProvider {

async signMultiGroupTransferTx(params: SignTransferTxParams): Promise<SignTransferTxResult[]> {
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
}

Expand Down
11 changes: 8 additions & 3 deletions test/tipping-multi-group.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')!
}))
Expand All @@ -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', [

Check failure on line 111 in test/tipping-multi-group.test.ts

View workflow job for this annotation

GitHub Actions / build (20)

Replace `⏎······['user2',·0.3]⏎····` with `['user2',·0.3]`
['user2', 0.3]
])

// check user balance
const balance0 = await tippingBot.getUserBalance('user0')
Expand Down

0 comments on commit 0cd8a3d

Please sign in to comment.