How I can I solve “TypeError: Cannot read properties of undefined (reading ‘size’)” while using anchor?
I am trying to write a basic smart contract on Solana where anyone can start a crowdfunding campaign. I am working with the front end at the moment. I have managed to check for a Phantom wallet, connect the wallet, and am now stuck at creating the crowdfunding campaign with the TypeError above. This is the full error when I click the :