Skip to content

Commit

Permalink
fix tx fee (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
kieled authored Jul 25, 2024
1 parent 808ea94 commit 2964018
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nintondo-extension",
"version": "0.2.5.2",
"version": "0.2.5.3",
"private": true,
"scripts": {
"dev": "bun build.ts --watch",
Expand Down
2 changes: 1 addition & 1 deletion src/background/controllers/provider/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class ProviderController implements IProviderController {
network,
});
const psbt = Psbt.fromHex(tx);
return psbt.extractTransaction().toHex();
return psbt.extractTransaction(true).toHex();
};

@Reflect.metadata("APPROVAL", ["signPsbt"])
Expand Down
4 changes: 2 additions & 2 deletions src/ui/hooks/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export function useCreateBellsTxCallback() {
network,
});
const psbt = Psbt.fromHex(psbtHex);
const tx = psbt.extractTransaction();
const tx = psbt.extractTransaction(true);
const rawtx = tx.toHex();
return {
rawtx,
Expand Down Expand Up @@ -99,7 +99,7 @@ export function useCreateOrdTx() {
network,
});
const psbt = Psbt.fromHex(psbtHex);
const tx = psbt.extractTransaction();
const tx = psbt.extractTransaction(true);
const rawtx = tx.toHex();
return {
rawtx,
Expand Down

0 comments on commit 2964018

Please sign in to comment.