Fix example to reflect breaking api change (#344)

This commit is contained in:
Tom Pointon 2022-10-13 14:55:20 +01:00 committed by GitHub
parent b820c78ac1
commit 412ef5e221
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ module example::example {
public fun get_btc_usd_price(user: &signer, pyth_update_data: vector<vector<u8>>): Price { public fun get_btc_usd_price(user: &signer, pyth_update_data: vector<vector<u8>>): Price {
// First update the Pyth price feeds // First update the Pyth price feeds
let coins = coin::withdraw(user, pyth::get_update_fee()); let coins = coin::withdraw(user, pyth::get_update_fee(&pyth_update_data));
pyth::update_price_feeds(pyth_update_data, coins); pyth::update_price_feeds(pyth_update_data, coins);
// Price Feed Identifier of BTC/USD in Testnet // Price Feed Identifier of BTC/USD in Testnet