Here is the code. Basically the "getEntranceFee" part is not calling from the smart contract script, FundMe.sol. ]1

enter image description here

  • Please reformat your question and post code instead of image. Text in images won't get indexed by google and it's impossible for people to copy your code and try it. Feb 3, 2022 at 10:34

1 Answer 1


By only calling FundMe you're not getting an actual instance of the smart contract. It only gets you ContractContainer as stated in the log.

If your contract has been already deployed, you can call FundMe[x] where x is the index of the deployed FundMe contract (All deployments are saved in array sequentially). If you always want to get the latest contract, you can just call FundMe[-1]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.