Skip to content

Commit 412ef5e

Browse files
authored
Fix example to reflect breaking api change (#344)
1 parent b820c78 commit 412ef5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aptos/example/sources/example.move

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module example::example {
1313
public fun get_btc_usd_price(user: &signer, pyth_update_data: vector<vector<u8>>): Price {
1414

1515
// First update the Pyth price feeds
16-
let coins = coin::withdraw(user, pyth::get_update_fee());
16+
let coins = coin::withdraw(user, pyth::get_update_fee(&pyth_update_data));
1717
pyth::update_price_feeds(pyth_update_data, coins);
1818

1919
// Price Feed Identifier of BTC/USD in Testnet

0 commit comments

Comments
 (0)