diff --git a/src/content/data-feeds/llms-full.txt b/src/content/data-feeds/llms-full.txt index 272e1022fb5..48867e59325 100644 --- a/src/content/data-feeds/llms-full.txt +++ b/src/content/data-feeds/llms-full.txt @@ -6022,10 +6022,12 @@ Before you begin, you should have: To complete this guide, you'll need: -- **Stellar CLI**: Install the [Stellar CLI](https://soroban.stellar.org/docs/reference/cli). Run stellar --version to verify your installation. +- **Stellar CLI**: Install the [Stellar CLI](https://soroban.stellar.org/docs/reference/cli). Run stellar --version to verify your installation. This guide uses Stellar CLI v25 or later. - **Rust toolchain**: Install [Rust](https://www.rust-lang.org/tools/install) using [rustup](https://rustup.rs/). Run cargo --version to verify your installation. +- **soroban-sdk**: The `stellar contract init` command scaffolds a project that depends on the latest `soroban-sdk` (v25 or later). The contract in this guide compiles against `soroban-sdk` v21 and later. If you pin an older version, use v21 or later. + - **Testnet XLM**: You'll need testnet XLM to deploy your contract. Fund a Stellar Testnet account using the friendbot faucet. Testnet XLM has no real value. ## Set up your Stellar testnet account @@ -6106,7 +6108,7 @@ To complete this guide, you'll need: /// Read the latest round for a feed and return its answer. pub fn read_latest_price(env: Env, proxy: Address, data_id: BytesN<32>) -> I256 { let client = DataFeedsProxyClient::new(&env, &proxy); - let round = client.latest_round(&data_id, &18).unwrap(); + let round = client.latest_round(&data_id, &18); round.answer } } diff --git a/src/content/data-feeds/stellar/using-data-feeds-on-chain.mdx b/src/content/data-feeds/stellar/using-data-feeds-on-chain.mdx index beca2d5db7a..d095e17fabf 100644 --- a/src/content/data-feeds/stellar/using-data-feeds-on-chain.mdx +++ b/src/content/data-feeds/stellar/using-data-feeds-on-chain.mdx @@ -43,10 +43,12 @@ Before you begin, you should have: To complete this guide, you'll need: -- **Stellar CLI**: Install the [Stellar CLI](https://soroban.stellar.org/docs/reference/cli). Run to verify your installation. +- **Stellar CLI**: Install the [Stellar CLI](https://soroban.stellar.org/docs/reference/cli). Run to verify your installation. This guide uses Stellar CLI v25 or later. - **Rust toolchain**: Install [Rust](https://www.rust-lang.org/tools/install) using [rustup](https://rustup.rs/). Run to verify your installation. +- **soroban-sdk**: The `stellar contract init` command scaffolds a project that depends on the latest `soroban-sdk` (v25 or later). The contract in this guide compiles against `soroban-sdk` v21 and later. If you pin an older version, use v21 or later. + - **Testnet XLM**: You'll need testnet XLM to deploy your contract. Fund a Stellar Testnet account using the friendbot faucet. Testnet XLM has no real value. ## Set up your Stellar testnet account @@ -127,7 +129,7 @@ To complete this guide, you'll need: /// Read the latest round for a feed and return its answer. pub fn read_latest_price(env: Env, proxy: Address, data_id: BytesN<32>) -> I256 { let client = DataFeedsProxyClient::new(&env, &proxy); - let round = client.latest_round(&data_id, &18).unwrap(); + let round = client.latest_round(&data_id, &18); round.answer } }