Skip to content

Commit

Permalink
fix pay remaining
Browse files Browse the repository at this point in the history
  • Loading branch information
RodrigoAD committed Jan 26, 2022
1 parent 641cefb commit 6a5b6f2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default class PayRemaining extends SolanaCommand {
)

// Get remaining non paid oracles. New oracles will be placed at the beginning of leftoverPayments
const leftovers = stateData.leftoverPayments.xs.slice(new BN(stateData.leftoverPayments.len).toNumber())
const leftovers = stateData.leftoverPayments.xs.slice(0, new BN(stateData.leftoverPayments.len).toNumber())
const remainingAccounts = leftovers.map((leftover) => ({
pubkey: new PublicKey(leftover.payee),
isWritable: true,
Expand Down

0 comments on commit 6a5b6f2

Please sign in to comment.