Skip to content

Commit

Permalink
feat(wallet): disable deposit button during pending transactions and …
Browse files Browse the repository at this point in the history
…log deposit owner address
  • Loading branch information
Ysrbolles committed Nov 25, 2024
1 parent 066f5d5 commit fad29e6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/components/wallet/earn/ModalDepositFunds.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
:error="depositOwnerError"
:errorMessage="depositOwnerError"
style="flex: 1"
:disabled="pendingDepositTX"
/>
</div>
<!-- <label style="margin-top: 16px">Deposit Owner</label>
Expand Down Expand Up @@ -259,6 +260,14 @@ export default class ModalDepositFunds extends Vue {
modal_abort_signing: ModalAbortSigning
}
mounted() {
console.log('offer', this.offer)
const adr = ava
.PChain()
.addressFromBuffer(bintools.cb58Decode(this.offer.ownerAddress as string))
console.log('deposit owner', adr )
}
@Watch('depositOwner')
onDepositOwnerChange() {
this.depositOwnerError = isValidPChainAddress(this.depositOwner) ? '' : 'Invalid address'
Expand Down

0 comments on commit fad29e6

Please sign in to comment.