Skip to content

Commit

Permalink
SDK: write to the correct index (#3454)
Browse files Browse the repository at this point in the history
  • Loading branch information
barnjamin authored Oct 20, 2023
1 parent cbb570c commit c682706
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/js/src/solana/utils/secp256k1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export class Secp256k1SignatureOffsets {
serialized.writeUInt8(0, 6 + i * offsetSpan);
serialized.writeUInt16LE(messageDataOffset, 7 + i * offsetSpan);
serialized.writeUInt16LE(messageDataSize, 9 + i * offsetSpan);
serialized.writeUInt8(0, 10 + i * offsetSpan);
serialized.writeUInt8(0, 11 + i * offsetSpan);

serialized.write(signature.toString("hex"), signatureOffset, "hex");
serialized.write(key.toString("hex"), ethAddressOffset, "hex");
Expand Down

0 comments on commit c682706

Please sign in to comment.