This project allows users to connect their MetaMask wallet and perform the following actions with a specified token (USDTM):
- π¦ Connect Metamask wallet: Users can connect their MetaMask wallet to the application.
- πͺ Call the Mint method: Users can initiate a "Mint" transaction.
- β° Waiting for the transaction to complete: The application will notify users to wait for the transaction to complete.
- π Balance update after transaction: Once the transaction is completed, the user's balance is updated accordingly.
To get started with this project, follow these steps:
git clone https://github.com/KarinaOlenina/usdtm-wallet.git
yarn install
yarn start
The app will be accessible at http://localhost:3000 in your web browser.
Make sure to create a .env file in the project root directory with the following environment variable:
REACT_APP_DEV_TOKEN_CONTRACT_ADDRESS=
This environment variable is used to specify the development token contract address.
Before using the application, make sure to configure the MetaMask network settings to connect to the Polygon Mumbai testnet with the following details:
Network Name: Polygon Mumbai Testnet
New RPC URL: https://endpoints.omniatech.io/v1/matic/mumbai/public
Chain ID: 80001
Currency Symbol: MATIC
These settings will allow you to connect to the Polygon Mumbai testnet and use the application with the specified RPC endpoint and network configuration.
You can run tests using the following command:
yarn test
This command launches the test runner in interactive watch mode for running tests.