Skip to content

Commit

Permalink
📦 VERSION: 3.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
AricRedemption committed Sep 6, 2024
1 parent 4c2fb29 commit 2c811c7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "metalet",
"private": true,
"version": "3.2.2",
"version": "3.2.3",
"type": "module",
"scripts": {
"dev": "vite --config ./vite-config/vite.dev.config.ts",
Expand Down
2 changes: 1 addition & 1 deletion public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Metalet",
"description": "A cross-chain crypto wallet extension",
"version": "3.2.2",
"version": "3.2.3",
"manifest_version": 3,
"action": {
"default_popup": "popup.html",
Expand Down
2 changes: 1 addition & 1 deletion src/data/config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const VERSION = '3.2.2'
export const VERSION = '3.2.3'

export const FEEB = 1
export const P2PKH_UNLOCK_SIZE = 1 + 1 + 72 + 1 + 33
Expand Down
17 changes: 10 additions & 7 deletions src/lib/crypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ export const payTransactions = async (
const { messages: metaIdMessages, outputIndex } = await parseLocalTransaction(tx)

if (outputIndex !== null) {
let replaceFound = false
// find out if any of the messages contains the wrong txid
// how to find out the wrong txid?
// it's the keys of txids Map
Expand All @@ -333,14 +334,16 @@ export const payTransactions = async (
}
}

// update the OP_RETURN
const opReturnOutput = new mvc.Transaction.Output({
script: mvc.Script.buildSafeDataOut(metaIdMessages),
satoshis: 0,
})
if (replaceFound) {
// update the OP_RETURN
const opReturnOutput = new mvc.Transaction.Output({
script: mvc.Script.buildSafeDataOut(metaIdMessages),
satoshis: 0,
})

// update the OP_RETURN output in tx
tx.outputs[outputIndex] = opReturnOutput
// update the OP_RETURN output in tx
tx.outputs[outputIndex] = opReturnOutput
}
}
}

Expand Down

0 comments on commit 2c811c7

Please sign in to comment.