You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The end of this function calls the `mint` function we defined before.
336
-
Before that, however, the function calls `[updatePriceFeeds]`(https://docs.pyth.network/price-feeds/api-reference/evm/update-price-feeds) on the Pyth contract.
336
+
Before that, however, the function calls [`updatePriceFeeds`](https://docs.pyth.network/price-feeds/api-reference/evm/update-price-feeds) on the Pyth contract.
337
337
This function takes a payload of `bytes[]` that is passed into the function itself.
338
-
The Pyth contract requires a fee to perform this update; the code snippet above calculates the needed fee using `[getUpdateFee]`(https://docs.pyth.network/price-feeds/api-reference/evm/get-update-fee).
338
+
The Pyth contract requires a fee to perform this update; the code snippet above calculates the needed fee using [`getUpdateFee`](https://docs.pyth.network/price-feeds/api-reference/evm/get-update-fee).
339
339
The caller of this function can pass in a recent Pyth price update as this payload, guaranteeing that the `StalePrice` error won't occur.
340
340
341
341
We can test this function by adding the following snippet to the test file:
0 commit comments