Skip to content

Commit 7f804cc

Browse files
committed
println -> msg
1 parent 7facf2b commit 7f804cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyth-sdk-solana/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ let price_account_info: AccountInfo = ...;
4242
let price_feed: PriceFeed = load_price_feed_from_account_info( &price_account_info ).unwrap();
4343
let current_timestamp = Clock::get()?.unix_timestamp;
4444
let current_price: Price = price_feed.get_price_no_older_than(current_timestamp, STALENESS_THRESHOLD).unwrap();
45-
println!("price: ({} +- {}) x 10^{}", current_price.price, current_price.conf, current_price.expo);
45+
msg!("price: ({} +- {}) x 10^{}", current_price.price, current_price.conf, current_price.expo);
4646
```
4747

4848
The `PriceFeed` object returned by `load_price_feed_from_account_info` contains all currently-available pricing information about the product.

0 commit comments

Comments
 (0)