Skip to content

Commit

Permalink
Fix pass signature parts to guard signer
Browse files Browse the repository at this point in the history
  • Loading branch information
Agusx1211 committed Jun 26, 2023
1 parent 218f843 commit 8c11fd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/commons/orchestrator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export type WalletSignRequestMetadata = {

config: Config,

signatureParts?: Map<string, commons.signature.SignaturePart>,
parts?: Map<string, commons.signature.SignaturePart>,

// TODO: We can add a "percentage" field to the orchestrator to indicate
// how close are we to the threshold. This can be used to display
Expand Down
2 changes: 1 addition & 1 deletion packages/guard/src/signer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class GuardSigner implements signers.SapientSigner {
// Building auxData, notice: this uses the old v1 format
// TODO: We should update the guard API so we can pass the metadata directly
const coder = universal.genericCoderFor(metadata.config.version)
const { encoded } = coder.signature.encodeSigners(metadata.config, metadata.signatureParts ?? new Map(), [], metadata.chainId)
const { encoded } = coder.signature.encodeSigners(metadata.config, metadata.parts ?? new Map(), [], metadata.chainId)

try {
const key = this.keyOfRequest(this.address, message, encoded, metadata.chainId)
Expand Down

0 comments on commit 8c11fd8

Please sign in to comment.