Skip to content

Commit

Permalink
fix(stacks): default to clarity 3, closes #5983
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranjamie committed Jan 10, 2025
1 parent 05132fe commit 38f6907
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/app/common/transactions/stacks/generate-unsigned-txs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import {
import { StacksNetwork } from '@stacks/network';
import {
AnchorMode,
ClarityVersion,
type UnsignedContractCallOptions,
type UnsignedContractDeployOptions,
deserializeCV,
makeUnsignedContractCall,
makeUnsignedContractDeploy,
Expand Down Expand Up @@ -69,7 +72,7 @@ function generateUnsignedContractCallTx(args: GenerateUnsignedContractCallTxArgs
postConditions: getPostConditions(postConditions),
network,
sponsored,
};
} satisfies UnsignedContractCallOptions;
return makeUnsignedContractCall(options);
}

Expand All @@ -90,7 +93,9 @@ function generateUnsignedContractDeployTx(args: GenerateUnsignedContractDeployTx
postConditionMode: postConditionMode,
postConditions: getPostConditions(postConditions),
network,
};
clarityVersion: ClarityVersion.Clarity3,
} satisfies UnsignedContractDeployOptions;

return makeUnsignedContractDeploy(options);
}

Expand Down

0 comments on commit 38f6907

Please sign in to comment.