From 4b3219635fd3f560fa11b1c73c47fa08228e047f Mon Sep 17 00:00:00 2001 From: oXtxNt9U <120286271+oXtxNt9U@users.noreply.github.com> Date: Wed, 18 Jun 2025 17:37:10 +0900 Subject: [PATCH 1/3] add wallet fallback --- packages/api-http/source/controllers/controller.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/api-http/source/controllers/controller.ts b/packages/api-http/source/controllers/controller.ts index baebc747c5..6c7caf9863 100644 --- a/packages/api-http/source/controllers/controller.ts +++ b/packages/api-http/source/controllers/controller.ts @@ -103,11 +103,18 @@ export class Controller extends AbstractController { if (!generator) { promises.push( (async () => { - generator = await this.walletRepositoryFactory() + generator = (await this.walletRepositoryFactory() .createQueryBuilder() .select() .where("address = :address", { address: block.proposer }) - .getOneOrFail(); + .getOne()) ?? { + address: block.proposer, + publicKey: "", + nonce: "0", + attributes: {}, + updated_at: "0", + balance: "0", + }; })(), ); } From 756fe144f543ec591d56f567705c15c93f5ee9f4 Mon Sep 17 00:00:00 2001 From: oXtxNt9U <120286271+oXtxNt9U@users.noreply.github.com> Date: Wed, 18 Jun 2025 17:37:31 +0900 Subject: [PATCH 2/3] empty commit From 49c7d9609b4d89b9926cbc49c2f3d19617346417 Mon Sep 17 00:00:00 2001 From: oXtxNt9U <120286271+oXtxNt9U@users.noreply.github.com> Date: Wed, 18 Jun 2025 08:39:45 +0000 Subject: [PATCH 3/3] style: resolve style guide violations --- packages/api-http/source/controllers/controller.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/api-http/source/controllers/controller.ts b/packages/api-http/source/controllers/controller.ts index 6c7caf9863..d7a8224053 100644 --- a/packages/api-http/source/controllers/controller.ts +++ b/packages/api-http/source/controllers/controller.ts @@ -109,11 +109,11 @@ export class Controller extends AbstractController { .where("address = :address", { address: block.proposer }) .getOne()) ?? { address: block.proposer, - publicKey: "", - nonce: "0", attributes: {}, - updated_at: "0", balance: "0", + nonce: "0", + publicKey: "", + updated_at: "0", }; })(), );