Skip to content

Commit 53592d5

Browse files
committed
PKG -- [sdk] Use keyID from signatures
1 parent 103f117 commit 53592d5

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.changeset/cyan-forks-rest.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@onflow/sdk": patch
3+
---
4+
5+
Use keyID from signatures

packages/sdk/src/resolve/resolve-signatures.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,12 @@ function fetchSignature(ix, payload) {
3939
return async function innerFetchSignature(id) {
4040
const acct = ix.accounts[id]
4141
if (acct.signature != null) return
42-
const {signature} = await acct.signingFunction(
42+
const { signature, keyId } = await acct.signingFunction(
4343
buildSignable(acct, payload, ix)
4444
)
45+
if (!acct.role.proposer) {
46+
ix.accounts[id].keyId = keyId
47+
}
4548
ix.accounts[id].signature = signature
4649
}
4750
}

0 commit comments

Comments
 (0)