Ohh I see @Saxon, yes if you just used it directly it won’t work because before you make it work you need to setup some cloud functions and sync some events because when it creates a new game (when burning the BET token), we need to get the newly created BettingGame smart contract address to interact with it in the next step and the way I do it is by using some event syncing in the video. You can check Part 7 of the video (you can check the timestamp) if you want to for setting up that part
Otherwise, a quick work around is to go to the BurnToken.jsx
and make little changes like this:
runCreateGame({
onSuccess: () => handleNext(),
})
so after creating the game successfully, it will automatically move to the next step of the game. However, I don’t recommend this because you won’t have the smart contract address of the BettingGame that was just created, which in turn won’t allow you to further advanced into the other steps (because there are some direct interaction with the newly created BettingGame smart contract)
Cheers,
Yoseph