-
Notifications
You must be signed in to change notification settings - Fork 635
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
fix swap test #6060
fix swap test #6060
Conversation
console.log('testID', testID, 'aa'); | ||
|
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.
console.log('testID', testID, 'aa'); |
@@ -79,10 +79,11 @@ export function valueBasedDecimalFormatter({ | |||
// Default to normal rounding if no rounding mode is specified | |||
roundedAmount = divWorklet(roundWorklet(mulWorklet(amount, factor)), factor); | |||
} | |||
console.log('maximumDecimalPlaces', maximumDecimalPlaces); |
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.
console.log('maximumDecimalPlaces', maximumDecimalPlaces); |
07fd741
to
580f8be
Compare
This reverts commit 9e591cc.
580f8be
to
f6c4d96
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.
Tested detox locally once the provider fix was in. Passed so I'm going to optimistically approve this. Feel free to merge once CI passes and everything feels good. 💯
src/redux/gas.ts
Outdated
}) | ||
)?.connection?.url; | ||
const provider = getProvider({ chainId: ChainId.mainnet }); | ||
const providerUrl = provider?.connection?.url; | ||
if (isHardHat(providerUrl)) { |
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.
we could replace this with the connectedToHardhat
directly instead of dealing with providerUrl
and the isHardHat
check?
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.
yep pushing
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.
i went ahead and also removed all instances of isHardhat
@@ -1,6 +1,6 @@ | |||
import { Contract } from '@ethersproject/contracts'; | |||
import { keyBy, mapValues } from 'lodash'; | |||
import { web3Provider } from '@/handlers/web3'; // TODO JIN |
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.
❤️
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.
🌮 🐐
Fixes APP-####
using
useConnectedToHardhatStore
hook to fetch balances, so when you switch to hardhat all assets balances will update correctlyWhat changed (plus any additional context for devs)
Screen recordings / screenshots
What to test