I'm trying to create a fund
function that allows users to fund their wallet after signing. I had my contract address & ABI stored in an external file and tried to export and import, but that didn't work. Please note: I'm a newbie. If what I'm saying doesn't make sense,here is a picture:
After connecting and funding my contract, this is what my code results in:
Dapp.js:35 Uncaught (in promise) ReferenceError: Cannot access 'contractAddress' before initialization
at fundMe (Dapp.js:35:53)
at HTMLButtonElement.<anonymous> (Dapp.js:13:5)
Dapp.js
code directly into your question body as opposed to a screenshot, this will help us to help you.