From 02876c47274671570364bf4184b5530c30e32974 Mon Sep 17 00:00:00 2001 From: scolear Date: Fri, 8 Nov 2024 11:30:14 +0100 Subject: [PATCH] chore: some changes from Dani --- src/app/hooks/use-icy-psbt.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/app/hooks/use-icy-psbt.ts b/src/app/hooks/use-icy-psbt.ts index 0115410f..f96818fa 100644 --- a/src/app/hooks/use-icy-psbt.ts +++ b/src/app/hooks/use-icy-psbt.ts @@ -8,6 +8,7 @@ import { submit1CYWithdrawDepositPSBT } from 'dlc-btc-lib/attestor-request-funct import { getAttestorGroupPublicKey } from 'dlc-btc-lib/ethereum-functions'; import { RawVault, Transaction } from 'dlc-btc-lib/models'; import { BigNumber } from 'ethers'; +import { bytesToHex } from 'viem'; import { useLeather } from './use-leather'; @@ -94,12 +95,12 @@ export function useOneClickYieldPSBT(): UseOneClickYieldPSBTReturnType { } await submit1CYWithdrawDepositPSBT([appConfiguration.coordinatorURL], { - vaultUUID: mockVault.uuid, - withdrawDepositPSBT: fundingTransaction.hex, + vaultUUID: '', + withdrawDepositPSBT: bytesToHex(fundingTransaction.toPSBT()).slice(2), attestorChainID: ethereumAttestorChainID, userBitcoinTaprootPublicKey: dlcHandler.getTaprootDerivedPublicKey(), valueLocked: mockVault.valueLocked.toString(), - integrationAddress: '0x259F05AC8216f0A522AAE4EdE5A9F54FDd9FC41b', + integrationAddress: paddedHexString, }); setBitcoinDepositAmount(depositAmount); @@ -138,7 +139,7 @@ export function useOneClickYieldPSBT(): UseOneClickYieldPSBTReturnType { attestorChainID: ethereumAttestorChainID, userBitcoinTaprootPublicKey: dlcHandler.getTaprootDerivedPublicKey(), valueLocked: mockVault.valueLocked.toString(), - integrationAddress: '0x259F05AC8216f0A522AAE4EdE5A9F54FDd9FC41b', + integrationAddress: paddedHexString, }); resetBitcoinWalletContext();