Closed walter-grace closed 3 years ago
If you're using ganache you should import one of the accounts provided (private key). Once correctly done you should have enough ethers to join the game.
As you know Join
method has 2 conditions
require(Tplayer.exist(msg.sender), "player doesn't exist");
require(msg.value >= 1 ether && Tpension[msg.sender] == 0, "send higher pension");
which means that
Cplayer
contract:findPlayer
method (it should return your details)Hint : Try to use remix to get back the message thrown by require
Getting failed transactions for joining game, no ether is showing up to accept the contract. Hope the pics help My first contract went through but it wasn't showing a larger number of eth.