convert string to ints

This commit is contained in:
Uthpala Heenatigala 2022-12-05 21:07:38 +01:00
parent f52e8ebfa1
commit 6ec5b9abf6

View file

@ -53,7 +53,7 @@
filled filled
dense dense
emit-value emit-value
v-model.trim="swapLnToBtc.data.onChainFees" v-model.trim="swapLnToBtc.data.on_chain_sats_per_vbyte"
label="On chain fees" label="On chain fees"
min="1" min="1"
type="number" type="number"
@ -204,9 +204,9 @@
sendLnToBtc() { sendLnToBtc() {
var self = this var self = this
axios.post('https://api-testnet.deezy.io/v1/swap', { axios.post('https://api-testnet.deezy.io/v1/swap', {
amount_sats: self.swapLnToBtc.data.amount, amount_sats: parseInt(self.swapLnToBtc.data.amount),
on_chain_address: self.swapLnToBtc.data.on_chain_address, on_chain_address: self.swapLnToBtc.data.on_chain_address,
on_chain_sats_per_vbyte: self.swapLnToBtc.data.on_chain_sats_per_vbyte on_chain_sats_per_vbyte: parseInt(self.swapLnToBtc.data.on_chain_sats_per_vbyte)
}) })
.then(function (response) { .then(function (response) {
self.swapLnToBtc = { self.swapLnToBtc = {