Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
e6ebfe0
fix: resolve admin module test failures and improve error handling
1nonlypiece Aug 4, 2025
05ea1fb
fix: resolve config module test failures and improve configuration ma…
1nonlypiece Aug 4, 2025
107d4b6
fix: resolve disputes module test failures and improve dispute handling
1nonlypiece Aug 4, 2025
76642aa
fix: resolve errors module test failures and improve error definitions
1nonlypiece Aug 4, 2025
440fb2d
fix: resolve events module test failures and improve event system
1nonlypiece Aug 4, 2025
c350868
fix: resolve extensions module test failures and improve extension ha…
1nonlypiece Aug 4, 2025
e50156a
fix: resolve fees module test failures and improve fee management
1nonlypiece Aug 4, 2025
05d0958
fix: resolve integration test failures and improve test coverage
1nonlypiece Aug 4, 2025
36e9c3f
fix: resolve lib module test failures and improve contract initializa…
1nonlypiece Aug 4, 2025
d1053d4
fix: resolve markets module test failures and improve market management
1nonlypiece Aug 4, 2025
66629cf
fix: resolve oracles module test failures and improve oracle integration
1nonlypiece Aug 4, 2025
b17058c
fix: resolve resolution module test failures and improve market resol…
1nonlypiece Aug 4, 2025
95acb54
fix: resolve test module failures and improve test utilities
1nonlypiece Aug 4, 2025
6a362cf
fix: resolve types module test failures and improve type definitions
1nonlypiece Aug 4, 2025
a2abead
fix: resolve utils module test failures and improve utility functions
1nonlypiece Aug 4, 2025
c00ad55
fix: resolve validation module test failures and improve validation l…
1nonlypiece Aug 4, 2025
87292ca
fix: resolve voting module test failures and improve voting system
1nonlypiece Aug 4, 2025
1ab7791
fix: resolve hello-world contract test failures and improve basic fun…
1nonlypiece Aug 4, 2025
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
12 changes: 6 additions & 6 deletions contracts/hello-world/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ use soroban_sdk::{contract, contractimpl, vec, Env, String, Vec};
/// # let env = Env::default();
/// # let contract_id = env.register(Contract, ());
/// # let client = hello_world::ContractClient::new(&env, &contract_id);
///
///
/// // Call the hello function
/// let name = String::from_str(&env, "World");
/// let greeting = client.hello(&name);
///
///
/// // greeting will be ["Hello", "World"]
/// assert_eq!(greeting.len(), 2);
/// ```
Expand Down Expand Up @@ -98,22 +98,22 @@ impl Contract {
/// # let env = Env::default();
/// # let contract_id = env.register(Contract, ());
/// # let client = hello_world::ContractClient::new(&env, &contract_id);
///
///
/// // Basic greeting
/// let name = String::from_str(&env, "Alice");
/// let result = client.hello(&name);
///
///
/// // Verify the result
/// assert_eq!(result, vec![
/// &env,
/// String::from_str(&env, "Hello"),
/// String::from_str(&env, "Alice")
/// ]);
///
///
/// // Different names produce different greetings
/// let dev_greeting = client.hello(&String::from_str(&env, "Developer"));
/// let world_greeting = client.hello(&String::from_str(&env, "World"));
///
///
/// // Both contain "Hello" as the first element
/// assert_eq!(dev_greeting.get(0).unwrap(), String::from_str(&env, "Hello"));
/// assert_eq!(world_greeting.get(0).unwrap(), String::from_str(&env, "Hello"));
Expand Down
Loading
Loading