We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Registers
It seems that Registers type is not narrow enough:
ergo-sdk-js/src/entities/registers.ts
Line 31 in dbdd341
The user may provide any string value as key, which is not correct.
It can be fixed easily with a mapped type:
- export type Registers = {[key: string]: HexString} + export type Registers = {[Key in RegisterId]: HexString}
The text was updated successfully, but these errors were encountered:
Duplicate of #26. I don't know why two same issues were submitted, maybe a network issue.
Sorry, something went wrong.
No branches or pull requests
It seems that
Registers
type is not narrow enough:ergo-sdk-js/src/entities/registers.ts
Line 31 in dbdd341
The user may provide any string value as key, which is not correct.
It can be fixed easily with a mapped type:
The text was updated successfully, but these errors were encountered: