diff --git a/src/components/ListComponent.vue b/src/components/ListComponent.vue index 52dcc83..ff4896b 100644 --- a/src/components/ListComponent.vue +++ b/src/components/ListComponent.vue @@ -2,7 +2,7 @@ import CustomButton from "@/components/CustomButton.vue"; import blockchain from "../utils/blockchain"; -// props and store references +// props const props = defineProps({ lastWalletReleaseTransactions: Array, tokenAmount: Number, @@ -49,31 +49,27 @@ const openEtherscanUrl = (url: string) => { @buttonClicked="() => {}" /> - -
-
-
+
Últimas transações
-
+
+
+ Valor + Tipo de transação + Checar transação +
@@ -95,14 +91,17 @@ const openEtherscanUrl = (url: string) => { Redirect image
- +
+ +
+

Não há nenhuma transação anterior

@@ -131,7 +130,7 @@ p { } .blur-container { - @apply flex flex-col justify-center items-center px-8 py-6 gap-2 rounded-lg shadow-md shadow-gray-600 backdrop-blur-md mt-8 w-1/3; + @apply flex flex-col justify-center items-center px-8 py-6 gap-4 rounded-lg shadow-md shadow-gray-600 backdrop-blur-md mt-10 w-auto; } .last-release-info { diff --git a/src/utils/blockchain.ts b/src/utils/blockchain.ts index 9552c12..cf2f036 100644 --- a/src/utils/blockchain.ts +++ b/src/utils/blockchain.ts @@ -21,7 +21,7 @@ const updateWalletStatus = async () => { const walletAddress = await provider.send("eth_requestAccounts", []); const balance = await contract.balanceOf(walletAddress[0]); - +etherStore.setBalance(formatBigNumber(balance)); + etherStore.setBalance(formatBigNumber(balance)); etherStore.setWalletAddress(ethers.utils.getAddress(walletAddress[0])); }; diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 6e22600..e43914c 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -81,9 +81,8 @@ const releaseTransaction = async ({ e2eId }: any) => { walletAddress.value.toLowerCase() ); + await blockchain.updateWalletStatus(); loadingRelease.value = false; - - blockchain.updateWalletStatus(); } };