Skip to content

Commit

Permalink
Renamed extend host function (#1170)
Browse files Browse the repository at this point in the history
### What

Small fix for env name change in PR stellar/rs-soroban-env#1240.
  • Loading branch information
SirTyson authored Nov 28, 2023
1 parent e35bace commit 7c154b4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@ soroban-token-sdk = { version = "20.0.0-rc2", path = "soroban-token-sdk" }
[workspace.dependencies.soroban-env-common]
version = "20.0.0-rc2"
git = "https://github.com/stellar/rs-soroban-env"
rev = "be04cf31e925ba5bacd9b22db7caf7b4f6dd8372"
rev = "bb55c40f694dc70ec437d266cc6c810983cb1e86"

[workspace.dependencies.soroban-env-guest]
version = "20.0.0-rc2"
git = "https://github.com/stellar/rs-soroban-env"
rev = "be04cf31e925ba5bacd9b22db7caf7b4f6dd8372"
rev = "bb55c40f694dc70ec437d266cc6c810983cb1e86"

[workspace.dependencies.soroban-env-host]
version = "20.0.0-rc2"
git = "https://github.com/stellar/rs-soroban-env"
rev = "be04cf31e925ba5bacd9b22db7caf7b4f6dd8372"
rev = "bb55c40f694dc70ec437d266cc6c810983cb1e86"

[workspace.dependencies.stellar-strkey]
version = "0.0.8"
Expand Down
2 changes: 1 addition & 1 deletion soroban-sdk/src/deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ impl Deployer {
/// The TTL is the number of ledgers between the current ledger and the `live_until_ledger_seq` value for the ledger entry.
pub fn extend_ttl(&self, contract_address: Address, threshold: u32, extend_to: u32) {
self.env
.extend_contract_instance_and_code(
.extend_contract_instance_and_code_ttl(
contract_address.to_object(),
threshold.into(),
extend_to.into(),
Expand Down
4 changes: 2 additions & 2 deletions soroban-sdk/src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ impl Storage {
K: IntoVal<Env, Val>,
{
let env = &self.env;
internal::Env::extend_contract_data(
internal::Env::extend_contract_data_ttl(
env,
key.into_val(env),
storage_type,
Expand Down Expand Up @@ -375,7 +375,7 @@ impl Instance {
}

pub fn extend_ttl(&self, threshold: u32, extend_to: u32) {
internal::Env::extend_current_contract_instance_and_code(
internal::Env::extend_current_contract_instance_and_code_ttl(
&self.storage.env,
threshold.into(),
extend_to.into(),
Expand Down

0 comments on commit 7c154b4

Please sign in to comment.