diff --git a/yarn-project/aztec/src/bin/index.ts b/yarn-project/aztec/src/bin/index.ts index e78022c041ab..3e9e71d8c78f 100644 --- a/yarn-project/aztec/src/bin/index.ts +++ b/yarn-project/aztec/src/bin/index.ts @@ -40,7 +40,7 @@ async function main() { program = injectPXECommands(program, userLog, debugLogger); program = injectMiscCommands(program, userLog); program = injectDevnetCommands(program, userLog, debugLogger); - program = await injectWalletCommands(program, userLog, debugLogger); + program = injectWalletCommands(program, userLog, debugLogger); await program.parseAsync(process.argv); } diff --git a/yarn-project/cli-wallet/src/storage/wallet_db.ts b/yarn-project/cli-wallet/src/storage/wallet_db.ts index 1d6999722f12..16f452042187 100644 --- a/yarn-project/cli-wallet/src/storage/wallet_db.ts +++ b/yarn-project/cli-wallet/src/storage/wallet_db.ts @@ -53,7 +53,7 @@ export class WalletDB { async popBridgedFeeJuice(recipient: AztecAddress, log: LogFn) { let stackPointer = (await this.#bridgedFeeJuice.getAsync(`${recipient.toString()}:stackPointer`))?.readInt8() || 0; - const result = this.#bridgedFeeJuice.getAsync(`${recipient.toString()}:${stackPointer}`); + const result = await this.#bridgedFeeJuice.getAsync(`${recipient.toString()}:${stackPointer}`); if (!result) { throw new Error( `No stored fee juice available for recipient ${recipient.toString()}. Please provide claim amount and secret. Stack pointer ${stackPointer}`,