diff --git a/src/App.js b/src/App.js index a2c0c32..6c3b20a 100644 --- a/src/App.js +++ b/src/App.js @@ -35,7 +35,8 @@ function Contract() { winningAmount: 0, phraseSet: false, mintAmount: 1, - balance: 0 + balance: 0, + hash: '' }); function handleStateChange(obj) { setOptions(preState => ({...preState , ...obj})); @@ -49,6 +50,7 @@ function Contract() { {..._contract, functionName: 'winningAmount'}, {..._contract, functionName: 'phraseSet'}, {..._contract, functionName: 'balanceOf'}, + {..._contract, functionName: 'winningPhraseHash'}, ], watch: true, cacheTime: 8000, @@ -60,7 +62,8 @@ function Contract() { winners: Number(data[3]), winningAmount: Number(data[4]), phraseSet: Number(data[5]), - balance: Number(data[6]) + balance: Number(data[6]), + hash: data[7].toString() }); } }); @@ -68,11 +71,12 @@ function Contract() { if (isConnected) return ( <> +
- An NFT Lottery. Mint a token for your chance to win 1 ETH. + An NFT Lottery. Mint a token for your chance to win 1 ETH. 10 tokens are pre-determined to win.