We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22d7270 commit fd65a39Copy full SHA for fd65a39
apps/price_pusher/src/ton/ton.ts
@@ -5,7 +5,7 @@ import {
5
PriceInfo,
6
PriceItem,
7
} from "../interface";
8
-import { DurationInSeconds } from "../utils";
+import { addLeading0x, DurationInSeconds } from "../utils";
9
import { Logger } from "pino";
10
import {
11
Address,
@@ -41,7 +41,8 @@ export class TonPriceListener extends ChainPriceListener {
41
42
async getOnChainPriceInfo(priceId: string): Promise<PriceInfo | undefined> {
43
try {
44
- const priceInfo = await this.contract.getPriceUnsafe(priceId);
+ const formattedPriceId = addLeading0x(priceId);
45
+ const priceInfo = await this.contract.getPriceUnsafe(formattedPriceId);
46
47
this.logger.debug(
48
`Polled a TON on chain price for feed ${this.priceIdToAlias.get(
0 commit comments