-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Various improvements #109
base: main
Are you sure you want to change the base?
Various improvements #109
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
220b896
to
6df3373
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
amazing stuff! 🚀
how about adding a small how to qa instructions so I can go over them and test for myself?
); | ||
expect(request.twitterUrl).toBe('https://example.com/x'); | ||
expect(request.verificationUrl).toBe('https://example.com/verification'); | ||
expect(request.websiteUrl).toBe('https://example.com'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the reason I'd rather leave the snapshot is that if we add new fields to the form then it has to be added here explicitly
and we're missing checking for the file properties like mime type and size in this case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the timestamp kept changing that's the reason
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
which timestamp?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the file's created at
}), | ||
} as Chain; | ||
|
||
// TODO: too complex, refactor this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still valid?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still valid need to do it
src/features/governance/hooks/__snapshots__/useProposalQuorum.test.ts.snap
Outdated
Show resolved
Hide resolved
balance: BigInt(formatEther(TEST_BALANCE)), | ||
gasPrice: TEST_GAS_PRICE, | ||
gasLimit: TEST_GAS_LIMIT, | ||
forkUrl: ANVIL_FORK_URL, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we still need to fork at all?
@@ -52,7 +54,7 @@ function DelegatorsTableContent({ delegatee }: { delegatee: Delegatee }) { | |||
{tableData.map((row) => ( | |||
<tr key={row.label}> | |||
<td className="py-2 font-mono text-sm text-taupe-600"> | |||
<ShortAddress address={row.label as `0x${string}`} /> | |||
<ShortAddress address={row.address!} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what happens when the address has a name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you look at the table data, the object is defined as following:
label: address,
value: fromWei(delegatorToAmount[address]),
address: normalizeAddress(address),
I purely used the .address!
to prevent type cast as well as having normalized addresses
i think all my suggestions are either quick fixes or if they turn out not to be not something to block merging for. |
With the christmas holiday approaching, we decided to merge this in the new year to prevent deploying when we're off, will work on the |
This PR introduces various refactors and features that aim to fix the following tickets:
It also adds a new testing environment (anvil), fairly basic for now but at leat can serve as a good dev base for the future. It also adds supports for custom RPC urls via an environment variable
Closes:
Others: