Skip to content

Commit fd65a39

Browse files
committed
fix
1 parent 22d7270 commit fd65a39

File tree

1 file changed

+3
-2
lines changed
  • apps/price_pusher/src/ton

1 file changed

+3
-2
lines changed

apps/price_pusher/src/ton/ton.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
PriceInfo,
66
PriceItem,
77
} from "../interface";
8-
import { DurationInSeconds } from "../utils";
8+
import { addLeading0x, DurationInSeconds } from "../utils";
99
import { Logger } from "pino";
1010
import {
1111
Address,
@@ -41,7 +41,8 @@ export class TonPriceListener extends ChainPriceListener {
4141

4242
async getOnChainPriceInfo(priceId: string): Promise<PriceInfo | undefined> {
4343
try {
44-
const priceInfo = await this.contract.getPriceUnsafe(priceId);
44+
const formattedPriceId = addLeading0x(priceId);
45+
const priceInfo = await this.contract.getPriceUnsafe(formattedPriceId);
4546

4647
this.logger.debug(
4748
`Polled a TON on chain price for feed ${this.priceIdToAlias.get(

0 commit comments

Comments
 (0)