Skip to content

Commit

Permalink
Locked fork block
Browse files Browse the repository at this point in the history
  • Loading branch information
asselstine committed Mar 25, 2024
1 parent c3a62bd commit b90cc12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/fork/RngWitnetFork.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ contract RngWitnetForkTest is Test {
uint256 fork;

function setUp() public {
fork = vm.createFork("optimism-sepolia");
fork = vm.createFork("optimism-sepolia", 9791733);
vm.selectFork(fork);
witnetRandomness = IWitnetRandomness(0xc0ffee84FD3B533C3fA408c993F59828395319A1);
rngWitnet = new RngWitnet(witnetRandomness);
vm.deal(address(this), 1000e18);
}

function testRequestRandomNumberFromFork() external {
uint fee = 0.00001e18;
uint fee = 0.00002e18;
(uint32 requestId, uint256 lockBlock, uint256 cost) = rngWitnet.requestRandomNumber{value: fee}(fee);
assertEq(requestId, 1, "request id");
assertEq(lockBlock, block.number, "block number");
Expand Down

0 comments on commit b90cc12

Please sign in to comment.