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

Commit 202aa2e

Browse files
authored
Add payable to the README example (#35)
* Add payable to the README example * Update the method casing
1 parent 9297259 commit 202aa2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ contract ExampleContract {
3131
pyth = IPyth(pythContract);
3232
}
3333
34-
function getBTCUSDPrice(
34+
function getBtcUsdPrice(
3535
bytes[] calldata priceUpdateData
36-
) public returns (PythStructs.Price memory) {
36+
) public payable returns (PythStructs.Price memory) {
3737
// Update the prices to the latest available values and pay the required fee for it. The `priceUpdateData` data
3838
// should be retrieved from our off-chain Price Service API using the `pyth-evm-js` package.
3939
// See section "How Pyth Works on EVM Chains" below for more information.

0 commit comments

Comments
 (0)