Skip to content

Commit

Permalink
feat(deployment): properly log clean up on error
Browse files Browse the repository at this point in the history
  • Loading branch information
ygrishajev committed Nov 8, 2024
1 parent cf324e2 commit 99e3c04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ export class ManagedUserWalletService {
@InjectSigningClient("MANAGED") private readonly masterSigningClientService: MasterSigningClientService,
private readonly rpcMessageService: RpcMessageService,
private readonly allowanceHttpService: AllowanceHttpService
) {
console.log("DEBUG masterSigningClientService", masterSigningClientService);
}
) {}

async createAndAuthorizeTrialSpending({ addressIndex }: { addressIndex: number }) {
const { address } = await this.createWallet({ addressIndex });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ export class StaleManagedDeploymentsCleanerService {

try {
await client.signAndBroadcast([message]);

this.logger.info({ event: "DEPLOYMENT_CLEAN_UP_SUCCESS" });
} catch (error) {
if (error.message.includes("not allowed to pay fees")) {
Expand All @@ -71,6 +70,7 @@ export class StaleManagedDeploymentsCleanerService {
});

await client.signAndBroadcast([message]);
this.logger.info({ event: "DEPLOYMENT_CLEAN_UP_SUCCESS" });
} else {
throw error;
}
Expand Down

0 comments on commit 99e3c04

Please sign in to comment.