seller flow + blockchain integration

This commit is contained in:
brunoedcf
2022-12-23 15:51:13 -03:00
parent 17d6e86508
commit 0de0046064
8 changed files with 61 additions and 32 deletions

View File

@@ -14,12 +14,6 @@ const validDecimals = ref(true);
// Emits
const emit = defineEmits(["approveTokens"]);
// Blockchain methods
const approveTokensHandle = async () => {
console.log(offer.value, pixKey.value);
emit("approveTokens");
};
// Debounce methods
const handleInputEvent = (event: any) => {
const { value } = event.target;
@@ -106,7 +100,7 @@ const decimalCount = (num: Number) => {
</div>
<CustomButton
:text="'Aprovar tokens'"
@buttonClicked="approveTokensHandle()"
@buttonClicked="emit('approveTokens', { offer, pixKey })"
/>
</div>
</div>