Skip to content

Commit

Permalink
fix: update getFee usage in stacking lib
Browse files Browse the repository at this point in the history
  • Loading branch information
reedrosenbluth committed Sep 7, 2021
1 parent 642f281 commit 34dab52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/stacking/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
someCV,
validateStacksAddress,
AnchorMode,
getFee,
} from '@stacks/transactions';
import {
BurnchainRewardListResponse,
Expand Down Expand Up @@ -748,7 +749,7 @@ export class StackingClient {
* @returns {StacksTransaction} that resolves to a transaction object if the operation succeeds
*/
modifyLockTxFee({ tx, amountMicroStx }: { tx: StacksTransaction; amountMicroStx: IntegerType }) {
const fee = tx.auth.getFee();
const fee = getFee(tx.auth);
(tx.payload as ContractCallPayload).functionArgs[0] = uintCV(
intToBigInt(amountMicroStx, false) - fee
);
Expand Down

0 comments on commit 34dab52

Please sign in to comment.