I have a problem in sending 0.01 MATIC to the smart contract, I always get the not enough funds error: enter image description here

the called function (createBid) is payable in the smart contract and here is the code:

enter image description here

I tried many values in the input but that doesn't work (only "0"), any help please ? (I'm new in blockchain and polygone tesnet)


1 Answer 1


You need to implemented a payable fallback method, or use the receive function.

What is the receive keyword in solidity?

  • thanks for answering, the problem is solved by adding the options parameter in amount .
    – Mayyy
    Jun 27, 2022 at 13:33

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