From a7a30f50181b145345c937f1dcfdf2646d5a5b4e Mon Sep 17 00:00:00 2001 From: brunoedcf Date: Thu, 22 Dec 2022 17:18:21 -0300 Subject: [PATCH] fixing buy flux --- src/utils/smart_contract_files/P2PIX.json | 19 ------------------- src/views/HomeView.vue | 4 ---- 2 files changed, 23 deletions(-) diff --git a/src/utils/smart_contract_files/P2PIX.json b/src/utils/smart_contract_files/P2PIX.json index 4f9f7ec..34e712f 100644 --- a/src/utils/smart_contract_files/P2PIX.json +++ b/src/utils/smart_contract_files/P2PIX.json @@ -270,25 +270,6 @@ "stateMutability": "pure", "type": "function" }, - { - "inputs": [ - { - "internalType": "address", - "name": "_addr", - "type": "address" - } - ], - "name": "_castAddrToKey", - "outputs": [ - { - "internalType": "uint256", - "name": "_key", - "type": "uint256" - } - ], - "stateMutability": "pure", - "type": "function" - }, { "inputs": [ { diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index ca8dbcd..a45b568 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -32,10 +32,6 @@ const confirmBuyClick = async ({ selectedDeposit, tokenValue }: any) => { const depositId = selectedDeposit.depositID; pixTarget.value = selectedDeposit.pixKey; tokenAmount.value = tokenValue; - // depositId is BigNumber type object - tokenAmount.value = tokenValue; - - pixTarget.value = String(depositDetail?.pixTarget); // Makes lock with deposit ID and the Amount if (depositDetail) {