Skip to content

Commit

Permalink
Remove stacks v7
Browse files Browse the repository at this point in the history
  • Loading branch information
aryzing committed Nov 29, 2024
1 parent 30782a4 commit 0608454
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 126 deletions.
121 changes: 0 additions & 121 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@
"jsontokens": "4.0.1",
"valibot": "0.42.1"
},
"peerDependencies": {
"@stacks/transactions": "^7.0.2"
},
"devDependencies": {
"@types/jest": "^29.2.6",
"husky": "^8.0.3",
Expand Down
6 changes: 4 additions & 2 deletions src/request/types/stxMethods/signTransactions.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { deserializeTransaction } from '@stacks/transactions';
import { MethodParamsAndResult, rpcRequestMessageSchema } from '../../../types';
import * as v from 'valibot';

Expand All @@ -12,7 +11,10 @@ export const stxSignTransactionsParamsSchema = v.object({
v.pipe(
v.string(),
v.check((hex) => {
return Boolean(deserializeTransaction(hex));
// NOTE: The following method is a `@stacks/transactions` v7 method,
// and is left here in preparation for when other libraries are also
// updated to v7. return Boolean(deserializeTransaction(hex));
return true;
}, 'Invalid hex-encoded Stacks transaction.')
)
),
Expand Down

0 comments on commit 0608454

Please sign in to comment.