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

Commit 2d36421

Browse files
author
Arnaud Schenk
committed
fix(aztec.js): save the owner address instead of public key
1 parent a193dc1 commit 2d36421

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/aztec.js/src/note/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,8 @@ export async function fromEventLog(logNoteData, spendingKey = null) {
311311
const newNote = new Note(notePublicKey, null);
312312
if (spendingKey) {
313313
await newNote.derive(spendingKey);
314-
const { publicKey } = secp256k1.accountFromPrivateKey(spendingKey);
315-
newNote.owner = publicKey;
314+
const { address } = secp256k1.accountFromPrivateKey(spendingKey);
315+
newNote.owner = address;
316316
}
317317
return newNote;
318318
}

0 commit comments

Comments
 (0)