Skip to content

Commit

Permalink
fix: all of payFeeByOutput invokes missed passing feeRate
Browse files Browse the repository at this point in the history
  • Loading branch information
ashuralyk authored and Hanssen0 committed Aug 22, 2024
1 parent a781037 commit 41ec4dd
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/beige-penguins-melt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@spore-sdk/core': patch
---

passing feeRate to payFeeByOutput method
1 change: 1 addition & 0 deletions packages/core/src/api/composed/cluster/transferCluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export async function transferCluster(props: {
// Pay fee by the cluster cell's capacity margin
txSkeleton = await payFeeByOutput({
outputIndex: injectLiveClusterCellResult.outputIndex,
feeRate: props.feeRate,
txSkeleton,
config,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export async function transferClusterAgent(props: {
// Pay fee by the target cell's capacity margin
txSkeleton = await payFeeByOutput({
txSkeleton,
feeRate: props.feeRate,
outputIndex: injectLiveClusterAgentCellResult.outputIndex,
config,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ export async function transferClusterProxy(props: {
// Pay fee by the spore cell's capacity margin
txSkeleton = await payFeeByOutput({
outputIndex: injectLiveClusterProxyCellResult.outputIndex,
feeRate: props.feeRate,
txSkeleton,
config,
});
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/api/composed/mutant/transferMutant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export async function transferMutant(props: {
// Pay fee by the target cell's capacity margin
txSkeleton = await payFeeByOutput({
outputIndex: injectLiveMutantCellResult.outputIndex,
feeRate: props.feeRate,
txSkeleton,
config,
});
Expand Down
2 changes: 2 additions & 0 deletions packages/core/src/api/composed/spore/transferSpore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export async function transferSpore(props: {
// Pay fee by the spore cell's capacity margin
txSkeleton = await payFeeByOutput({
outputIndex: injectLiveSporeCellResult.outputIndex,
feeRate: props.feeRate,
txSkeleton,
config,
});
Expand Down Expand Up @@ -229,6 +230,7 @@ export async function transferMultipleSpore(props: {
try {
const tkSkeletonNew = await payFeeByOutput({
outputIndex: item.outputIndex,
feeRate: props.feeRate,
txSkeleton,
config,
});
Expand Down

0 comments on commit 41ec4dd

Please sign in to comment.