Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: zeta-chain/example-frontend
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 54f4936d0e79808045abd0548212c8b14e3152dd
Choose a base ref
..
head repository: zeta-chain/example-frontend
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0d2fa5e836ce84da7478bd225bf320c8b5007e7f
Choose a head ref
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/btcintegration/xverse-utils.ts
2 changes: 1 addition & 1 deletion app/btcintegration/xverse-utils.ts
Original file line number Diff line number Diff line change
@@ -75,11 +75,11 @@ async function createTransaction(
const opReturn = btc.Script.encode(["RETURN", Buffer.from(memo, "utf8")])

tx.addOutputAddress(recipientAddress, BigInt(params.amount), bitcoinTestnet)
tx.addOutputAddress(changeAddress, BigInt(800), bitcoinTestnet)
tx.addOutput({
script: opReturn,
amount: BigInt(0),
})
tx.addOutputAddress(changeAddress, BigInt(800), bitcoinTestnet)

const psbt = tx.toPSBT(0)