HashLips / hashlips_nft_minting_dapp

HashLips minting dapp is a quick and easy way to connect your smart contract and start minting NFTs.
MIT License
1.02k stars 984 forks source link

Error: Unhandled Rejection (Error): No "from" address specified in neither the given options, nor the default options. #139

Open BenzNFT opened 2 years ago

BenzNFT commented 2 years ago

Hey all!

Running though testing on the DAPP and I have noticed an issue. Everything works ok but one issue is when I manually disconnect my MetaMask wallet, the 'buy' button is still active and when pressed the above error is produced. It can be circumvented by refreshing the page again but I know buyers will face issues with this.

Is there any way to constantly monitor the wallet connection and change the state of the button to 'connect' again?

Thanks in advance