瀏覽代碼

Update README.md (#1526)

* Update README.md

changed method doc

* Update README.md

---------

Co-authored-by: guibescos <59208140+guibescos@users.noreply.github.com>
cipherZ 1 年之前
父節點
當前提交
3d9781ed58
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      price_service/client/js/README.md

+ 1 - 1
price_service/client/js/README.md

@@ -42,7 +42,7 @@ const priceIds = [
 const currentPrices = await connection.getLatestPriceFeeds(priceIds);
 
 // You can also call this function to get price updates for the on-chain contract directly.
-const priceUpdateData = await connection.getPriceFeedsUpdateData(priceIds);
+const priceUpdateData = await connection.getLatestVaas(priceIds);
 ```
 
 `PriceServiceConnection` also allows subscribing to real-time price updates over a websocket connection: