separating deposit steps in 2 different functions: approveTokens and addDeposit. Creating different function to mock deposits in mockView

This commit is contained in:
brunoedcf
2022-12-23 16:06:45 -03:00
parent 2075c827c1
commit a216474453
2 changed files with 34 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ const formatWalletAddress = (wallet: string): string => {
// Gets value and pix key from user's form to create a deposit in the blockchain
const mockDeposit = () => {
if (!depositValue.value || !depositPixKey.value) return;
blockchain.addDeposit(depositValue.value, depositPixKey.value);
blockchain.mockDeposit(depositValue.value, depositPixKey.value);
};
// Get specific deposit data by its ID