Skip to content

Commit 24a08a0

Browse files
authored
chore(pricefeed-evm-sdk): Improve doc comments (#1521)
1 parent f212907 commit 24a08a0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

target_chains/ethereum/sdk/solidity/MockPyth.sol

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,18 @@ contract MockPyth is AbstractPyth {
3434
// Takes an array of encoded price feeds and stores them.
3535
// You can create this data either by calling createPriceFeedUpdateData or
3636
// 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+
// ]
3749
function updatePriceFeeds(
3850
bytes[] calldata updateData
3951
) public payable override {

0 commit comments

Comments
 (0)