Skip to content

Commit

Permalink
fix: and pass sponsored to generateUnsignedContractCall
Browse files Browse the repository at this point in the history
  • Loading branch information
teebszet committed Jul 20, 2023
1 parent 1173ab3 commit e267c5f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions transactions/stx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export async function generateUnsignedSTXTokenTransfer(
memo: memo ?? '',
network: txNetwork,
fee: 0,
sponsored: sponsored,
sponsored,
anchorMode: anchorMode ? anchorMode : AnchorMode.Any,
postConditionMode,
postConditions,
Expand Down Expand Up @@ -280,7 +280,7 @@ export async function estimateContractCallFees(
export async function generateUnsignedTransaction(
unsginedTx: UnsignedStacksTransation
): Promise<StacksTransaction> {
var unsignedTx;
let unsignedTx;
const functionName = 'transfer';
let functionArgs: ClarityValue[];

Expand All @@ -296,6 +296,7 @@ export async function generateUnsignedTransaction(
publicKey,
network,
pendingTxs,
sponsored,
} = unsginedTx;

const postConditionOptions: PostConditionsOptions = {
Expand Down Expand Up @@ -338,6 +339,7 @@ export async function generateUnsignedTransaction(
network,
nonce: undefined,
postConditions: postConditions,
sponsored,
};
unsignedTx = await generateUnsignedContractCall(unsignedContractCallParam);

Expand Down

0 comments on commit e267c5f

Please sign in to comment.