Skip to content

Commit

Permalink
Update ledger-namada package, fix type (indicies -> indices)
Browse files Browse the repository at this point in the history
  • Loading branch information
jurevans committed Jul 26, 2023
1 parent c9d8d73 commit 9c4ee1d
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions apps/extension/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ export const generateId = (
* Convert ISignature into serialized and encoded signature
*/
export const encodeSignature = (sig: ISignature): Uint8Array => {
const { salt, indicies, pubkey, signature } = sig;
const { salt, indices, pubkey, signature } = sig;

// TODO: Note that the following "any" type usage below is a result of the buffer responses
// from the Ledger do not match the ISignature type! This will be fixed in a future release.

/* eslint-disable */
const props = {
salt: new Uint8Array((salt as any).data),
indicies: new Uint8Array((indicies as any).data),
indices: new Uint8Array((indices as any).data),
pubkey: new Uint8Array((pubkey as any).data),
signature: new Uint8Array((signature as any).data),
};
Expand Down
4 changes: 2 additions & 2 deletions packages/ledger-namada/dist/processResponses.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/ledger-namada/dist/processResponses.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/ledger-namada/dist/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ export interface ResponseNullifier extends ResponseBase {
export interface ISignature {
raw: Buffer;
salt: Buffer;
indicies: Buffer;
indices: Buffer;
pubkey: Buffer;
signature: Buffer | null;
}
export declare class Signature implements ISignature {
raw: Buffer;
salt: Buffer;
indicies: Buffer;
indices: Buffer;
pubkey: Buffer;
signature: Buffer | null;
isFilled: boolean;
Expand Down
4 changes: 2 additions & 2 deletions packages/ledger-namada/dist/types.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9c4ee1d

Please sign in to comment.