Hi,
I have a question about “payable” methods.
I’m wondering if that is even possible. The use case is this :-
Customers place a bet on the smart contract paying for example 10 Matic for making the bet (the smart contract will run on polygon blockchain) - We will like to pay the gas fee for the user, so he only should pay the 10 Matic he bets, and we will pay for the gas fees The smart contract method is this one:
function bid(uint256 _raceId, uint256 _horseId) public payable
{ require(msg.value == price, "Price is not correct"); // do stuff }
Is this possible?