Skip to content

Commit 7ea9d93

Browse files
gawniegaodhgan
authored andcommitted
make format
1 parent d690386 commit 7ea9d93

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

apps/randomness/monitor-randomness.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,10 @@ import { abis, deployment } from "@happy.tech/contracts/random/anvil"
22
import { http, type Block, type Hex, createPublicClient, encodeAbiParameters, encodePacked, keccak256 } from "viem"
33
import { anvil } from "viem/chains"
44
import { z } from "zod"
5-
<<<<<<< HEAD
65

76
const RANDOMNESS_CONTRACT_ABI = abis.Random
87
const RANDOMNESS_CONTRACT_ADDRESS = deployment.Random
9-
=======
10-
import { abis, deployment } from "@happy.tech/contracts/random/anvil"
118

12-
const RANDOMNESS_CONTRACT_ABI = abis.Random
13-
const RANDOMNESS_CONTRACT_ADDRESS = deployment.Random;
14-
>>>>>>> 59f0c410 (chore(randomness): changes in monitor script)
159
const DRAND_SERVICE_URL = "https://api.drand.sh/v2/beacons/evmnet"
1610

1711
const client = createPublicClient({
@@ -120,10 +114,6 @@ async function onNewBlock(block: Block<bigint, false, "latest">) {
120114
return
121115
}
122116

123-
if (!revealedValueForBlock) {
124-
return
125-
}
126-
127117
const expectedRandomValue = keccak256(
128118
encodePacked(["bytes32", "uint128"], [drandRandomness, revealedValueForBlock]),
129119
)

0 commit comments

Comments
 (0)