Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions masm/accounts/oracle_reader.masm
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ export.get_price
# => [PAIR]

# This is the procedure root of the `get_median` procedure
push.0xb86237a8c9cd35acfef457e47282cc4da43df676df410c988eab93095d8fb3b9
push.0xe3aa90b3eeca91470e0d9ff1f37d74047c230c81dd88505701b926db11303004
# => [GET_MEDIAN_HASH, PAIR]

push.939716883672832.2172042075194638080
push.4116674871048819456.1405377866143230208
# => [oracle_id_prefix, oracle_id_suffix, GET_MEDIAN_HASH, PAIR]

exec.tx::execute_foreign_procedure
Expand Down
4 changes: 2 additions & 2 deletions rust-client/src/bin/oracle_data_query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ async fn main() -> Result<(), ClientError> {
// -------------------------------------------------------------------------
// Get all foreign accounts for oracle data
// -------------------------------------------------------------------------
let oracle_bech32 = "mtst1qq0zffxzdykm7qqqqdt24cc2du5ghx99";
let (_, oracle_account_id) = AccountId::from_bech32(oracle_bech32).unwrap();
let oracle_bech32 = "mtst1aqfcpeaey657jqpey9wlhu9y2veenvk8";
let (_,oracle_account_id) = AccountId::from_bech32(oracle_bech32).unwrap();
let btc_usd_pair_id = 120195681;
let foreign_accounts: Vec<ForeignAccount> =
get_oracle_foreign_accounts(&mut client, oracle_account_id, btc_usd_pair_id).await?;
Expand Down