Skip to content

Commit 169974c

Browse files
authored
PKG -- [sdk] Fix prefix on payload signatures (#2025)
1 parent a919a16 commit 169974c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/sdk/src/encode/encode.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const preparePayloadSignatures = (tx: Transaction) => {
6969
return tx.payloadSigs
7070
?.map((sig: Sig) => {
7171
return {
72-
signerIndex: signers.get(sig.address) || "",
72+
signerIndex: signers.get(sansPrefix(sig.address)) || "",
7373
keyId: sig.keyId,
7474
sig: sig.sig,
7575
}
@@ -116,7 +116,7 @@ const prepareVoucher = (voucher: Voucher) => {
116116
const prepareSigs = (sigs: Sig[]) => {
117117
return sigs
118118
.map(({address, keyId, sig}) => {
119-
return {signerIndex: signers.get(address) || "", keyId, sig}
119+
return {signerIndex: signers.get(sansPrefix(address)) || "", keyId, sig}
120120
})
121121
.sort((a, b) => {
122122
if (a.signerIndex > b.signerIndex) return 1

0 commit comments

Comments
 (0)