Skip to content

Commit

Permalink
PKG -- [sdk] Use keyID from signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
scottphc committed Jun 7, 2023
1 parent 103f117 commit 53592d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/cyan-forks-rest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@onflow/sdk": patch
---

Use keyID from signatures
5 changes: 4 additions & 1 deletion packages/sdk/src/resolve/resolve-signatures.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,12 @@ function fetchSignature(ix, payload) {
return async function innerFetchSignature(id) {
const acct = ix.accounts[id]
if (acct.signature != null) return
const {signature} = await acct.signingFunction(
const { signature, keyId } = await acct.signingFunction(
buildSignable(acct, payload, ix)
)
if (!acct.role.proposer) {
ix.accounts[id].keyId = keyId
}
ix.accounts[id].signature = signature
}
}
Expand Down

0 comments on commit 53592d5

Please sign in to comment.