Skip to content

Commit f0b706e

Browse files
Merge pull request #120 from Trustless-Work/chore/protocol-28-single-release
chore: update soroban-sdk to 28.0.0 for Protocol 28 (single-release v1)
2 parents 22a0b23 + 7257fac commit f0b706e

3 files changed

Lines changed: 48 additions & 35 deletions

File tree

‎Cargo.lock‎

Lines changed: 42 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ members = [
55
]
66

77
[workspace.dependencies]
8-
soroban-sdk = "26.0.0"
9-
soroban-token-sdk = { version = "26.0.0" }
8+
soroban-sdk = "28.0.0"
9+
soroban-token-sdk = { version = "28.0.0" }
1010

1111
[profile.release]
1212
opt-level = "z"

‎contracts/escrow/src/contract.rs‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
use soroban_sdk::{contract, contractimpl, Address, BytesN, Env, Map, String, Symbol, Val, Vec};
1+
use soroban_sdk::{
2+
contract, contractimpl, Address, BytesN, ContractExecutable, Env, Map, String, Symbol, Val, Vec,
3+
};
24

35
use crate::core::{DisputeManager, EscrowManager, MilestoneManager};
46
use crate::error::ContractError;
@@ -34,7 +36,7 @@ impl EscrowContract {
3436
let deployed_address = env
3537
.deployer()
3638
.with_address(deployer, salt)
37-
.deploy_v2(wasm_hash, constructor_args);
39+
.deploy_contract(ContractExecutable::Wasm(wasm_hash), constructor_args);
3840

3941
let res: Val = env.invoke_contract(&deployed_address, &init_fn, init_args);
4042
Ok((deployed_address, res))

0 commit comments

Comments
 (0)