Skip to content

Commit

Permalink
Fix keyId for HTTP get transaction request (#2049)
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink authored Dec 19, 2024
1 parent 93649ba commit 4e90776
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/great-ears-joke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@onflow/transport-http": patch
---

Fix keyId for HTTP get transaction request
2 changes: 1 addition & 1 deletion packages/transport-http/src/send-get-transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export async function sendGetTransaction(ix, context = {}, opts = {}) {

const unwrapKey = key => ({
address: key.address,
keyId: Number(key.key_id),
keyId: Number(key.key_index),
sequenceNumber: Number(key.sequence_number),
})

Expand Down
2 changes: 1 addition & 1 deletion packages/transport-http/src/send-get-transaction.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe("Get Transaction", () => {
gas_limit: "123",
proposal_key: {
address: "1654653399040a61",
key_id: "1",
key_index: "1",
signer_index: "0",
sequence_number: "1",
},
Expand Down

0 comments on commit 4e90776

Please sign in to comment.