Skip to content

Commit

Permalink
fix(sdk): remove checking nostr-lock dummy-lock
Browse files Browse the repository at this point in the history
  • Loading branch information
RetricSu committed Jul 5, 2024
1 parent 0995f53 commit 4329723
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"chore": "pnpm -r run lint && pnpm -r run fmt && pnpm -r run build"
"chore": "pnpm -r run fmt && pnpm -r run lint && pnpm -r run test && pnpm -r run build"
},
"keywords": [],
"author": "",
Expand Down
4 changes: 0 additions & 4 deletions packages/sdk/src/lock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,6 @@ export class NostrLock {

if (witness !== '0x') {
const witnessArgs = blockchain.WitnessArgs.unpack(bytes.bytify(witness));
const lock = witnessArgs.lock;
if (lock && newWitnessArgs.lock && !bytes.equal(lock, newWitnessArgs.lock)) {
throw new Error('Lock field in first witness is set aside for signature!');
}
const inputType = witnessArgs.inputType;
if (inputType) {
newWitnessArgs.inputType = inputType;
Expand Down

0 comments on commit 4329723

Please sign in to comment.