Skip to content

Commit

Permalink
chore: remove split button and can not use uncomfirmed utxos
Browse files Browse the repository at this point in the history
  • Loading branch information
AricRedemption committed Aug 29, 2024
1 parent f382f47 commit 89cf4b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pages/settings/components/BTCMerge.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const transactions = ref<
>([])
const { data: balance } = useBTCBalanceQuery(address, {
useUnconfirmed: true,
useUnconfirmed: false,
enabled: computed(() => !!currentBTCWallet.value && !!address.value),
needRawTx: currentBTCWallet.value?.getScriptType() === ScriptType.P2PKH,
})
Expand All @@ -55,7 +55,7 @@ watch(
(newAddress) => {
if (newAddress) {
const needRawTx = currentBTCWallet.value!.getScriptType() === ScriptType.P2PKH
getBtcUtxos(newAddress, needRawTx, true).then((_utxos) => {
getBtcUtxos(newAddress, needRawTx, false).then((_utxos) => {
utxos.value = _utxos
isLoading.value = false
})
Expand Down Expand Up @@ -218,7 +218,7 @@ const broadcast = () => {

<TransactionResultModal v-model:is-open-result="isOpenResultModal" :result="transactionResult" />
</div>
<button
<!-- <button
@click="splitFn"
:class="[
{ 'cursor-not-allowed opacity-50': mergeDisabled },
Expand All @@ -227,7 +227,7 @@ const broadcast = () => {
>
<ArrowPathIcon class="animate-spin w-4 h-4" v-if="operationLock" />
Split
</button>
</button> -->

<button
@click="mergeFn"
Expand Down

0 comments on commit 89cf4b4

Please sign in to comment.