We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d42c4c1 commit 6a4ae74Copy full SHA for 6a4ae74
1 file changed
packages/api-http/source/controllers/controller.ts
@@ -103,11 +103,18 @@ export class Controller extends AbstractController {
103
if (!generator) {
104
promises.push(
105
(async () => {
106
- generator = await this.walletRepositoryFactory()
+ generator = (await this.walletRepositoryFactory()
107
.createQueryBuilder()
108
.select()
109
.where("address = :address", { address: block.proposer })
110
- .getOneOrFail();
+ .getOne()) ?? {
111
+ address: block.proposer,
112
+ attributes: {},
113
+ balance: "0",
114
+ nonce: "0",
115
+ publicKey: "",
116
+ updated_at: "0",
117
+ };
118
})(),
119
);
120
}
0 commit comments