Skip to content

Commit

Permalink
PKG -- [sdk] Fix prefix on payload signatures (#2025)
Browse files Browse the repository at this point in the history
  • Loading branch information
caosbad authored Nov 26, 2024
1 parent a919a16 commit 169974c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/sdk/src/encode/encode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const preparePayloadSignatures = (tx: Transaction) => {
return tx.payloadSigs
?.map((sig: Sig) => {
return {
signerIndex: signers.get(sig.address) || "",
signerIndex: signers.get(sansPrefix(sig.address)) || "",
keyId: sig.keyId,
sig: sig.sig,
}
Expand Down Expand Up @@ -116,7 +116,7 @@ const prepareVoucher = (voucher: Voucher) => {
const prepareSigs = (sigs: Sig[]) => {
return sigs
.map(({address, keyId, sig}) => {
return {signerIndex: signers.get(address) || "", keyId, sig}
return {signerIndex: signers.get(sansPrefix(address)) || "", keyId, sig}
})
.sort((a, b) => {
if (a.signerIndex > b.signerIndex) return 1
Expand Down

0 comments on commit 169974c

Please sign in to comment.