preparing props for next steps fafter search

This commit is contained in:
RcleydsonR
2022-11-29 17:49:24 -03:00
parent d4f98133f5
commit 67cc1aca07
4 changed files with 17 additions and 11 deletions

View File

@@ -1,11 +1,16 @@
<script setup lang="ts">
import SearchComponent from "../components/SearchComponent.vue";
import blockchain from "../utils/blockchain";
const confirmBuyClick = ({ selectedDeposit, tokenValue }: any) => {
const confirmBuyClick = async ({ selectedDeposit, tokenValue }: any) => {
// finish buy screen
console.log(selectedDeposit);
let depositDetail;
await blockchain
.mapDeposits(selectedDeposit["args"]["depositID"])
.then((deposit) => (depositDetail = deposit));
console.log(tokenValue);
console.log("compra confirmada");
console.log(depositDetail);
};
</script>