Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Louis Bettens committed Sep 27, 2023
1 parent a8ba608 commit 7e0441f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,8 @@ describe("VRF Test Suite", function () {
// Triggers pause condition
for (let i = 0; i < 1001; ++i) ethers.provider.send("evm_mine", []);


// Spams requests, only the last MAX_RANGE * MAX_REQUESTS should be picked up
for (let i = 0; i < 1000; ++i) {
for (let i = 0; i < 1000; ++i) {
await inbox.connect(user).requestRandomness(mockConsumer.address, data);
}

Expand Down
2 changes: 1 addition & 1 deletion web3-functions/vrf/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const CALLBACK_ABI = [
const MAX_RANGE = 100; // limit range of events to comply with rpc providers
const MAX_REQUESTS = 5; // limit number of requests on every execution to avoid hitting timeout
const MAX_DEPTH = MAX_RANGE * MAX_REQUESTS; // How far the VRF should catch up with blocks
const MAX_DISTANCE = 1000; // Helpful to detect if the VRF has been paused not to recover too many blocks
const MAX_DISTANCE = 1000; // Helpful to detect if the VRF has been paused not to recover too many blocks

Web3Function.onRun(async (context: Web3FunctionContext) => {
const { userArgs, storage, multiChainProvider } = context;
Expand Down

0 comments on commit 7e0441f

Please sign in to comment.