Skip to content

Commit

Permalink
Rename contract (#1609)
Browse files Browse the repository at this point in the history
  • Loading branch information
fnando authored Sep 17, 2024
1 parent 1ffc255 commit 62ae1d7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/crates/soroban-test/tests/it/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ fn build_no_package_found() {
.failure()
.stderr(predicate::eq(
"\
error: package nopkgwiththisname not found
error: package nopkgwiththisname not found
",
));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
use soroban_sdk::{contract, contractimpl, vec, Env, String, Vec};

#[contract]
pub struct HelloContract;
pub struct Contract;

#[contractimpl]
impl HelloContract {
impl Contract {
pub fn hello(env: Env, to: String) -> Vec<String> {
vec![&env, String::from_str(&env, "Hello"), to]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ use soroban_sdk::{vec, Env, String};
#[test]
fn test() {
let env = Env::default();
let contract_id = env.register_contract(None, HelloContract);
let client = HelloContractClient::new(&env, &contract_id);
let contract_id = env.register_contract(None, Contract);
let client = ContractClient::new(&env, &contract_id);

let words = client.hello(&String::from_str(&env, "Dev"));
assert_eq!(
Expand Down

0 comments on commit 62ae1d7

Please sign in to comment.