Skip to content
This repository has been archived by the owner on Mar 16, 2023. It is now read-only.

Commit

Permalink
fix(aztec.js): save the owner address instead of public key
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud Schenk committed Jul 20, 2020
1 parent a193dc1 commit 2d36421
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/aztec.js/src/note/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ export async function fromEventLog(logNoteData, spendingKey = null) {
const newNote = new Note(notePublicKey, null);
if (spendingKey) {
await newNote.derive(spendingKey);
const { publicKey } = secp256k1.accountFromPrivateKey(spendingKey);
newNote.owner = publicKey;
const { address } = secp256k1.accountFromPrivateKey(spendingKey);
newNote.owner = address;
}
return newNote;
}
Expand Down

0 comments on commit 2d36421

Please sign in to comment.