From 68760284ae63ef0dde22d768ca0bbebf5920399d Mon Sep 17 00:00:00 2001 From: Soham Zemse <22412996+zemse@users.noreply.github.com> Date: Sat, 16 Mar 2024 11:32:32 +0000 Subject: [PATCH] fix note.from bug --- src/note.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/note.ts b/src/note.ts index 7126a62..38f4bd7 100644 --- a/src/note.ts +++ b/src/note.ts @@ -74,7 +74,7 @@ export class Note extends Commitable { }; } - async from(json: NoteRaw) { + static async from(json: NoteRaw) { return new Note( Field.from(json.amount), await KeyPair.newAsync(Field.from(json.keypair.private_key)),