Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
fix: ark uri scheme (#2314)
Browse files Browse the repository at this point in the history
  • Loading branch information
brenopolanski authored Jul 1, 2020
1 parent b7fa052 commit 0033d55
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -560,22 +560,24 @@ export default {
}
try {
if (this.schema.address && this.schema.amount) {
if (WalletService.validateAddress(this.schema.address, this.session_network.version)) {
if (WalletService.validateAddress(this.schema.address, this.session_network.version)) {
if (this.schema.address && this.schema.amount) {
this.$v.form.recipients.$model = []
this.$v.form.recipients.$model.push({
address: this.schema.address,
amount: this.currency_unitToSub(this.schema.amount),
sendAll: false
})
} else {
throw new Error(this.$t('VALIDATION.RECIPIENT_DIFFERENT_NETWORK', [
this.wallet_truncate(this.schema.address)
]))
this.$set(this, 'recipientId', this.schema.address || '')
}
}
this.$set(this.form, 'vendorField', this.schema.vendorField || '')
this.$set(this.form, 'vendorField', this.schema.vendorField || '')
} else {
throw new Error(this.$t('VALIDATION.RECIPIENT_DIFFERENT_NETWORK', [
this.wallet_truncate(this.schema.address)
]))
}
} catch (error) {
this.$error(`${this.$t('TRANSACTION.ERROR.LOAD_FROM_URI')}: ${error.message}`)
}
Expand Down

0 comments on commit 0033d55

Please sign in to comment.