0

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)

Kof
  • 2,954
  • 6
  • 23
Mayyy
  • 3
  • 3

1 Answers1

1

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

What is the receive keyword in solidity?

Kof
  • 2,954
  • 6
  • 23
  • thanks for answering, the problem is solved by adding the options parameter in amount . – Mayyy Jun 27 '22 at 13:33