From 412ef5e2211cdfe12c2785c09adbb2fe082ae575 Mon Sep 17 00:00:00 2001 From: Tom Pointon Date: Thu, 13 Oct 2022 14:55:20 +0100 Subject: [PATCH] Fix example to reflect breaking api change (#344) --- aptos/example/sources/example.move | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aptos/example/sources/example.move b/aptos/example/sources/example.move index 191f85c4..ca9fad2c 100644 --- a/aptos/example/sources/example.move +++ b/aptos/example/sources/example.move @@ -13,7 +13,7 @@ module example::example { public fun get_btc_usd_price(user: &signer, pyth_update_data: vector>): Price { // 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); // Price Feed Identifier of BTC/USD in Testnet