-
Notifications
You must be signed in to change notification settings - Fork 1
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
938: Add code for smart contract from puffer launchpad #3
Conversation
7b6be9d
to
3cc395b
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.
I've not put comments on the legacy code you've copied over, but I think there are a few things there that could be improved
@@ -7,6 +7,11 @@ export default [ | |||
...tseslint.configs.recommended, | |||
eslintPluginPrettierRecommended, | |||
{ | |||
ignores: ['dist'], | |||
ignores: ['dist/'], |
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 can do better than this later hopefully
lib/react/context/NetworkConfig.tsx
Outdated
if (isConnected) { | ||
const network = networkEnumToString(networkName).toLowerCase(); | ||
const importedModule = await import(`../config/${network}.ts`).catch( | ||
() => ({ default: defaultConfig }), |
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.
should we actually be erroring here if the network can't found
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.
This code is removed in the next PR.
The code is copied over to the package and linting issues along with some other problems are fixed.
The API is not exported/exposed yet since the idea of the package is to expose contract methods differently. Which will be added in a follow up PR.