-
-
Notifications
You must be signed in to change notification settings - Fork 134
[FIX] Inconsistent data types and validations #228
Conversation
nit but I don't think that would be breaking either way? Making it private from public would have been. |
@gantunesr How can I replicate the release-blocking issue that this addresses locally in order to review the fix? |
@legobeat good point!
I'm not sure about the exact problem that led to the error in NPM publishing. I was reviewing the previous workflow but didn't find any logs pertaining to the issue. Previously, I encountered errors concerning the |
Try comparing the module template publishing workflow with the one used here. The problem was that the build step was missing entirely - it didn't malfunction, it was just never included. I don't think it relates to the changes in this PR though, we can fix the workflows separately. |
@Gudahtt @legobeat I have opened a new PR (#230) to update the module configuration to match the one from https://github.com/MetaMask/metamask-module-template |
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.
LGTM
any updates on this one? |
@paulmillr I'll run a test now and if it succeeds it should be good to go |
@gantunesr tests seems to pass |
@paulmillr I was referring to the unit and E2E tests in the MetaMask client, they're failing due to the error management updates. I'm working on fixing them |
Is timing for v11 release known? |
|
Description
The TS refactor and workflow update had issues that prevented the module to be correctly published and consumed by the clients, this PR aims to solve them.
The noticeable issues were,
fullUpdate
was marked as private when it should be public.normalizeToHex
is returning astring
to methods that require aHex
.data
in the#newKeyring
was removed because the clients are not sending the correct input. The validation will be re-introduced after the proper updates in the clients.tsconfig.build.json
file was update in accordance to the module template..d.ts
files were misplaced in the wrong directoryChanges
normalizeToHex
have to cast the return type asHex
.#newKeyring
removed a data validation because of thedata
param input from the clients.fullUpdate
was mistakenly flagged as private, this PR introduces it again as public.References
build-lint-test
workflow #221Checklist