antododo / tictactoeTuto

2 stars 1 forks source link

Betting works one time but fails the second time #2

Closed dabana closed 6 years ago

dabana commented 6 years ago

first try: When you press the betting button, 3 ETH are removed from your account. When the game ends, you receive 6 ETH back if X wins.

second try: When you press the betting button, 3 ETH are removed from your account. When the game ends, Metamasks issues a transaction with 0 gaz limit and the call to BettingResults fails.

dabana commented 6 years ago

Les soldes dans metamask sont pas toujours les mêmes que dans ganache ...

dabana commented 6 years ago

First remove metamask. Then makesure you have enough money in the contract to transfer...