Skip to content
This repository was archived by the owner on May 6, 2025. It is now read-only.

Add payable to the README example #35

Merged
merged 2 commits into from
Nov 15, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ contract ExampleContract {
pyth = IPyth(pythContract);
}

function getBTCUSDPrice(
function getBtcUsdPrice(
bytes[] calldata priceUpdateData
) public returns (PythStructs.Price memory) {
) public payable returns (PythStructs.Price memory) {
// Update the prices to the latest available values and pay the required fee for it. The `priceUpdateData` data
// should be retrieved from our off-chain Price Service API using the `pyth-evm-js` package.
// See section "How Pyth Works on EVM Chains" below for more information.
Expand Down