Skip to content

Commit

Permalink
Revert "PKG -- [sdk] Fix prefix on payload signatures (#2025)"
Browse files Browse the repository at this point in the history
This reverts commit 169974c.
  • Loading branch information
jribbink authored Nov 26, 2024
1 parent 169974c commit 9bbc334
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(sansPrefix(sig.address)) || "",
signerIndex: signers.get(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(sansPrefix(address)) || "", keyId, sig}
return {signerIndex: signers.get(address) || "", keyId, sig}
})
.sort((a, b) => {
if (a.signerIndex > b.signerIndex) return 1
Expand Down

0 comments on commit 9bbc334

Please sign in to comment.