Skip to content

Commit

Permalink
revert make-payment bulkSendRawTransactions logic (#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryzettler authored Aug 16, 2023
1 parent 8ac7bb0 commit 80f88ba
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/store/slices/solanaSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
import * as lz from '@helium/lazy-distributor-sdk'
import {
bulkSendRawTransactions,
bulkSendTransactions,
chunks,
sendAndConfirmWithRetry,
} from '@helium/spl-utils'
Expand Down Expand Up @@ -141,11 +142,7 @@ export const makePayment = createAsyncThunk(
async ({ account, cluster, anchorProvider, paymentTxns }: PaymentInput) => {
if (!account?.solanaAddress) throw new Error('No solana account found')

const signed = await anchorProvider.wallet.signAllTransactions(paymentTxns)
const signatures = await bulkSendRawTransactions(
anchorProvider.connection,
signed.map((s) => s.serialize()),
)
const signatures = await bulkSendTransactions(anchorProvider, paymentTxns)

postPayment({ signatures, cluster })

Expand Down

0 comments on commit 80f88ba

Please sign in to comment.