๐ Chainlink double reveal
transmissions11 opened this issue ยท 0 comments
transmissions11 commented
this is asynchronous:
so we'll have set all the state above without actually setting a new seed, then someone can call revealGobblers
in the meantime while we're waiting for that new seed
could set randomSeed
to 0
and check its non zero in revealGobblers
or add a waitingForSeed
boolean to the reveal data struct:
there's technically a teeny tiny risk randomSeed
is set to 0 correctly by Chainlink VRF, so probably best to avoid magic values there