Skip to content

Commit

Permalink
chore: log error
Browse files Browse the repository at this point in the history
  • Loading branch information
ChandlerFerry committed Oct 31, 2024
1 parent 6cf7d2f commit 59ea914
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/wallet/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1124,6 +1124,7 @@ class Wallet extends EventTargetImpl {
//console.log("rpcTX:", rpcTX)
//throw new Error("TODO : XXXX")
try {
this.logger.info(`tx ... submission start`);
const ts = Date.now();
let txid: string = await this.api.submitTransaction(rpcTX);
const ts3 = Date.now();
Expand Down Expand Up @@ -1161,6 +1162,8 @@ class Wallet extends EventTargetImpl {
}
return resp;
} catch (e:any) {
this.logger.info(`tx ... submission error caught`);
this.logger.info(JSON.stringify(e));
if(reverseChangeAddress)
this.addressManager.changeAddress.reverse();
if (typeof e.setExtraDebugInfo == "function"){
Expand Down

0 comments on commit 59ea914

Please sign in to comment.