From bdd7312bf829279f746ef5269d971dd5574a8a6a Mon Sep 17 00:00:00 2001 From: PandaTea Date: Mon, 21 Jun 2021 13:56:31 +0800 Subject: [PATCH] use isReady function in Random --- Random.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Random.sol b/Random.sol index 4ebdcc7..458e51a 100644 --- a/Random.sol +++ b/Random.sol @@ -22,7 +22,7 @@ library Random { function get(Seed storage seed) internal view returns (bytes32) { require(isInitialized(seed), "Seed is not initialized"); - require(block.number > seed.blockNumber, "Wait one more block to open this Seed"); + require(isReady(seed), "Wait one more block to open this Seed"); return blockhash(seed.blockNumber); }