Call ToLoPryCoin.setOperator with the address of the Blackjack contract, to allow the Blackjack claiming tokens.
Call NFTPrize.setAllowedMinter with the address of the Blackjack contractm to allow the Blackjack contract minting NFTs.
Note: Keep the same account for all the deployments/transactions, since it will be the owner of the contracts.
Download Ganache (https://trufflesuite.com/ganache/)
- ./ganache-2.7.1-linux-x86_64.AppImage (on the folder where downloaded)
- truffle compile
- trufle migrate (keep the ToLoPry coin contract address at hand)
- with Ganache running and the contracts deployed:
- truffle console
- let instance = await ToLoPryCoin.deployed()
- let accounts = await web3.eth.getAccounts()
- instance.name()
- instance.balanceOf(accounts[0])