Skip to content

Commit c73b6d4

Browse files
authored
(fix:pricefeed/guide/evm) Add storage type to price object (#361)
1 parent da84b9f commit c73b6d4

File tree

1 file changed

+1
-1
lines changed
  • pages/price-feeds/use-real-time-data

1 file changed

+1
-1
lines changed

pages/price-feeds/use-real-time-data/evm.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ contract SomeContract {
7676
// Each price feed (e.g., ETH/USD) is identified by a price feed ID.
7777
// The complete list of feed IDs is available at https://pyth.network/developers/price-feed-ids
7878
bytes32 priceFeedId = 0xff61491a931112ddf1bd8147cd1b641375f79f5825126d665480874634fd0ace; // ETH/USD
79-
PythStructs.Price price = pyth.getPrice(priceFeedId);
79+
PythStructs.Price memory price = pyth.getPrice(priceFeedId);
8080
}
8181
}
8282

0 commit comments

Comments
 (0)