Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Thunnini committed Jan 14, 2025
1 parent 61f6a4c commit fce42e9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/background/src/recent-send-history/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ export class RecentSendHistoryService {
} else if (!history.txFulfilled) {
const chainId = history.chainId;
const chainInfo = this.chainsService.getChainInfo(chainId);
const txHash = Buffer.from(history.txHash, "hex");
const txHash = Buffer.from(history.txHash.replace("0x", ""), "hex");

if (chainInfo) {
const txTracer = new TendermintTxTracer(chainInfo.rpc, "/websocket");
Expand Down Expand Up @@ -1353,9 +1353,7 @@ export class RecentSendHistoryService {
const txTracer = new TendermintTxTracer(chainInfo.rpc, "/websocket");
txTracer.addEventListener("error", () => onFulfill(false));
txTracer
.traceTx({
"tx.hash": history.txHash,
})
.traceTx(Buffer.from(history.txHash, "hex"))
.then((res: any) => {
txTracer.close();

Expand Down

0 comments on commit fce42e9

Please sign in to comment.