-
Notifications
You must be signed in to change notification settings - Fork 8
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
chore: upgrade useink and setup vite #288
Conversation
✅ Deploy Preview for inklink ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
This complete @statictype @DoubleOTheven, clippy and contract test have been failing since Aug 19, 2022 https://github.com/paritytech/link/commits/master. Should we remove them? |
@@ -20,7 +20,8 @@ export const useSubmitHandler = () => { | |||
setSubmitting(false); | |||
} | |||
|
|||
if (!result?.status.isInBlock) 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.
@gaboesquivel we shouldn't comment out broken functionality.
@DoubleOTheven please look into why ContractSubmittableResult
seems to incorrectly extend SubmittableResult
in useInk.
Here is the expected shape.
If you undo the comments in this file, you will get build errors:
error TS2339: Property 'events' does not exist on type 'ContractSubmittableResult'.
error TS2339: Property 'dispatchError' does not exist on type 'ContractSubmittableResult'.
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.
good catch, I didn't realized that was missing
import { useLinkContract } from './hooks'; | ||
import { AbiMessage, ContractExecResult, Registry } from 'useink/core'; | ||
import { useAbiMessage } from 'useink'; | ||
import { hexToString } from './lib/converter'; |
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.
can you explain why you changed the hexToString
import?
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.
it seems the new version of useink doesnt export that function
"useDefineForClassFields": true, | ||
"lib": ["ES2020", "DOM", "DOM.Iterable"], | ||
"module": "ESNext", | ||
"skipLibCheck": true, |
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.
please change skipLibCheck
back to false
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.
@DoubleOTheven when I disable skipLibCheck compiler is not able to find many dependencies of useink
.
Perhaps they should be defined as dependencies or specified as peer dependencies?
Sometimes those tests fail due to CI problems, not actual broken functionality. This is probably the reason, we haven't touched the contract code. That part would really need some love, it's still on ink! v3. wdyt @cmichi? |
No description provided.