-
Notifications
You must be signed in to change notification settings - Fork 43
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
Beta to dev #334
Beta to dev #334
Conversation
Old RPC was causing issues randomly when forked with anvil
I'm working on merging beta in as well at #333 but please let me know if you have an idea on how to fix the stack traces in the UI. Its not debuggable for me. I paused on it and am continuing work on the new RPC manager. |
I don't fully understand what you mean by "fix the stack traces". I'm getting the following console output in this branch: |
Can't we just use the metamask provider as a fallback option instead of our Overall this PR can be merged, we'll keep solving issues one by one (if there're any). I haven't tried the actual gift card claiming, but at least gift cards are displayed. I'll need to check cloudflare env variables later. |
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.
Code mostly seems fine but two concerns:
- Stack traces for debugging seem useless now that it points to compiled javascript. We need this fixed or this is not maintainable.
- ubiquity-dollar.html seems like an odd name choice. What about something more specific related to the cards?
const tokenDecimals = await tokenContract.decimals(); | ||
|
||
return { | ||
permitted: { | ||
token: process.env.PAYMENT_TOKEN_ADDRESS || "", | ||
amount: ethers.utils.parseUnits(amount || "", tokenDecimals), | ||
token: permitConfig.PAYMENT_TOKEN_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.
Empty string looks wrong
|
||
export const permitAllowedChainIds = [1, 5, 10, 100, 31337]; | ||
|
||
export const ubiquityDollarAllowedChainIds = [1, 100, 31337]; |
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.
Perhaps we should bridge to optimism soon
|
||
function createToast(meaning: keyof typeof toaster.icons, text: string, timeout: number = 5000) { | ||
if (meaning != "info") buttonController.hideLoader(); | ||
//if (meaning != "info") buttonController.hideLoader(); |
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.
Maybe these should be removed
return; | ||
} | ||
|
||
transactionHistory.innerHTML = ` |
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.
Seems like another opportunity to do that String.raw syntax and then html`
} | ||
|
||
function transactionRowHtml(transaction: Transaction) { | ||
return ` |
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.
String.raw here as well
I missed this comment. Your logs seem fine! Mine were not pointing to the typescript source code. |
This PR merges gift cards minting feature into the
development
branch.