Skip to content

Commit

Permalink
Make the deep contract auth example consistent with other examples (#291
Browse files Browse the repository at this point in the history
)
  • Loading branch information
leighmcculloch committed Jan 10, 2024
1 parent 64219d6 commit 4c100c3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
11 changes: 6 additions & 5 deletions deep_contract_auth/Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
default: test
default: build

all: test

build:
cargo build

test:
test: build
cargo test

build:
soroban contract build
@ls -l target/wasm32-unknown-unknown/release/*.wasm

fmt:
cargo fmt --all

Expand Down
8 changes: 5 additions & 3 deletions deep_contract_auth/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/// for contract A address and contract A provides proper authorization to make
/// the calls succeed.

mod contract_a {
pub mod contract_a {

use soroban_sdk::{
auth::{ContractContext, InvokerContractAuthEntry, SubContractInvocation},
Expand Down Expand Up @@ -50,7 +50,7 @@ mod contract_a {
}
}

mod contract_b {
pub mod contract_b {
use soroban_sdk::{contract, contractimpl, Address, Env};

use crate::contract_c::ContractCClient;
Expand All @@ -67,7 +67,8 @@ mod contract_b {
}
}
}
mod contract_c {

pub mod contract_c {

use soroban_sdk::{contract, contractimpl, Address, Env};

Expand All @@ -81,4 +82,5 @@ mod contract_c {
}
}
}

mod test;

0 comments on commit 4c100c3

Please sign in to comment.