From 7e7b659d3f0a7787c1ec4dd2542e350897387600 Mon Sep 17 00:00:00 2001 From: Naomi Plasterer Date: Fri, 19 Apr 2024 12:37:10 -0700 Subject: [PATCH] fix: correctly access the address so that it isnt accidenlty null --- src/keystore/InMemoryKeystore.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/keystore/InMemoryKeystore.ts b/src/keystore/InMemoryKeystore.ts index 5d8853153..3590031d9 100644 --- a/src/keystore/InMemoryKeystore.ts +++ b/src/keystore/InMemoryKeystore.ts @@ -311,7 +311,7 @@ export default class InMemoryKeystore implements KeystoreInterface { const thirtyDayPeriodsSinceEpoch = Math.floor( Date.now() / 1000 / 60 / 60 / 24 / 30 ) - const info = `${thirtyDayPeriodsSinceEpoch}-${this.accountAddress}` + const info = `${thirtyDayPeriodsSinceEpoch}-${await this.getAccountAddress()}` const hmac = await generateHmacSignature( keyMaterial, new TextEncoder().encode(info), @@ -631,7 +631,7 @@ export default class InMemoryKeystore implements KeystoreInterface { thirtyDayPeriodsSinceEpoch, thirtyDayPeriodsSinceEpoch + 1, ].map(async (value) => { - const info = `${value}-${this.accountAddress}` + const info = `${value}-${await this.getAccountAddress()}` const hmacKey = await hkdfHmacKey( keyMaterial, new TextEncoder().encode(info)