Skip to content

Commit

Permalink
reset fromBlock to zero because only way it works
Browse files Browse the repository at this point in the history
  • Loading branch information
MattPereira committed Nov 30, 2023
1 parent a205d79 commit a1a2425
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,7 @@ export const RainbowKitCustomConnectButton = () => {
<span>Wrong network</span>
<ChevronDownIcon className="h-6 w-4 ml-2 sm:ml-0" />
</label>
<ul
tabIndex={0}
className="dropdown-content menu p-2 mt-1 shadow-center shadow-accent bg-base-200 rounded-box gap-1"
>
<ul tabIndex={0} className="dropdown-content menu p-2 mt-1 bg-neutral-800 rounded-box gap-1">
<li>
<button
className="btn-sm !rounded-xl flex py-3 gap-3"
Expand Down Expand Up @@ -94,16 +91,13 @@ export const RainbowKitCustomConnectButton = () => {
<div className="dropdown dropdown-end leading-3">
<label
tabIndex={0}
className="btn btn-secondary btn-sm pl-0 pr-2 shadow-md dropdown-toggle gap-0 !h-auto"
className="btn btn-primary btn-sm pl-0 pr-2 shadow-md dropdown-toggle gap-0 !h-auto"
>
<BlockieAvatar address={account.address} size={30} ensImage={account.ensAvatar} />
<span className="ml-2 mr-1">{account.displayName}</span>
<ChevronDownIcon className="h-6 w-4 ml-2 sm:ml-0" />
</label>
<ul
tabIndex={0}
className="dropdown-content menu z-[2] p-2 mt-2 shadow-center shadow-accent bg-base-200 rounded-box gap-1"
>
<ul tabIndex={0} className="dropdown-content menu z-[2] p-2 mt-2 bg-neutral-800 rounded-box gap-1">
<li>
{addressCopied ? (
<div className="btn-sm !rounded-xl flex gap-3 py-3">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const Leaderboard = () => {
// const { data: events, isLoading: isLoadingEvents } = useScaffoldEventHistory({
// contractName: "Market",
// eventName: "PlayerTotalAssetUpdate",
// fromBlock: 43002321n,
// fromBlock: 0n,
// // Apply filters to the event based on parameter names and values { [parameterName]: value },
// filters: {
// contestNumber: currentContestNumber,
Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/components/vaults-of-fortune/Round.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ const RoiTable = () => {
contractName: "Market",
eventName: "RoundROIResults",
// Specify the starting block number from which to read events, this is a bigint.
fromBlock: 43000000n,
fromBlock: 0n,
blockData: true,
// Apply filters to the event based on parameter names and values { [parameterName]: value },
filters: { contestNumber: currentContest },
Expand Down

0 comments on commit a1a2425

Please sign in to comment.