Skip to content

Commit

Permalink
chore: add feeRate to create-multiple-spores method
Browse files Browse the repository at this point in the history
  • Loading branch information
ashuralyk authored and Hanssen0 committed Sep 24, 2024
1 parent 65bef8a commit ef58c00
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/brown-carpets-learn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@spore-sdk/core': patch
---

add feerate to createMultipleSpores
2 changes: 2 additions & 0 deletions packages/core/src/api/composed/spore/createSpore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ export async function createMultipleSpores(props: {
paymentAmount?: (minPayment: BI, lock: Script, cell: Cell) => BIish;
};
maxTransactionSize?: number | false;
feeRate?: BIish | undefined;
config?: SporeConfig;
}): Promise<{
txSkeleton: helpers.TransactionSkeletonType;
Expand Down Expand Up @@ -301,6 +302,7 @@ export async function createMultipleSpores(props: {
txSkeleton,
fromInfos: props.fromInfos,
changeAddress: props.changeAddress,
feeRate: props.feeRate,
updateTxSkeletonAfterCollection(_txSkeleton) {
// Generate and inject SporeID
_txSkeleton = injectNewSporeIds({
Expand Down

0 comments on commit ef58c00

Please sign in to comment.