convert string to ints
This commit is contained in:
parent
f52e8ebfa1
commit
6ec5b9abf6
1 changed files with 3 additions and 3 deletions
|
|
@ -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 = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue