We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b820c78 commit 412ef5eCopy full SHA for 412ef5e
aptos/example/sources/example.move
@@ -13,7 +13,7 @@ module example::example {
13
public fun get_btc_usd_price(user: &signer, pyth_update_data: vector<vector<u8>>): Price {
14
15
// First update the Pyth price feeds
16
- let coins = coin::withdraw(user, pyth::get_update_fee());
+ let coins = coin::withdraw(user, pyth::get_update_fee(&pyth_update_data));
17
pyth::update_price_feeds(pyth_update_data, coins);
18
19
// Price Feed Identifier of BTC/USD in Testnet
0 commit comments