Skip to content

Commit cb3e44c

Browse files
committed
Update JS to use real time and make tests pass
1 parent 5e38857 commit cb3e44c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lazer/evm/lib/pyth-crosschain

lazer/evm/src/ExampleReceiver.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ contract ExampleReceiver {
4545
uint64 _price;
4646
(_price, pos) = PythLazerLib.parseFeedValueUint64(payload, pos);
4747
console.log("price %d", _price);
48-
if (feedId == 2 && _timestamp > timestamp) {
48+
if (feedId == 6 && _timestamp > timestamp) {
4949
price = _price;
5050
timestamp = _timestamp;
5151
}

lazer/js/src/publish.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ const main = async () => {
168168
properties: ["price"],
169169
chains: ["solana"],
170170
deliveryFormat: "json",
171-
channel: "fixed_rate@1ms",
171+
channel: "real_time",
172172
jsonBinaryEncoding: "hex",
173173
});
174174
};

0 commit comments

Comments
 (0)