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 f212907 commit 24a08a0Copy full SHA for 24a08a0
target_chains/ethereum/sdk/solidity/MockPyth.sol
@@ -34,6 +34,18 @@ contract MockPyth is AbstractPyth {
34
// Takes an array of encoded price feeds and stores them.
35
// You can create this data either by calling createPriceFeedUpdateData or
36
// by using web3.js or ethers abi utilities.
37
+ // @note: The updateData expected here is different from the one used in the main contract.
38
+ // In particular, the expected format is:
39
+ // [
40
+ // abi.encode(
41
+ // PythStructs.PriceFeed(
42
+ // bytes32 id,
43
+ // PythStructs.Price price,
44
+ // PythStructs.Price emaPrice
45
+ // ),
46
+ // uint64 prevPublishTime
47
+ // )
48
+ // ]
49
function updatePriceFeeds(
50
bytes[] calldata updateData
51
) public payable override {
0 commit comments