Skip to content

Commit

Permalink
Merge branch 'main' into rec_auth_check
Browse files Browse the repository at this point in the history
  • Loading branch information
sisuresh authored Jul 6, 2023
2 parents 6c66f32 + e5f25d9 commit 21f9deb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions soroban-env-host/src/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -591,10 +591,12 @@ impl AuthorizationManager {
}
// No matching tracker found, hence the invocation isn't
// authorized.
Err(HostError::from((
Err(host.err(
ScErrorType::Auth,
ScErrorCode::InvalidAction,
)))
"Unauthorized function call for address",
&[address.to_val()],
))
}

fn require_auth_internal(
Expand Down

0 comments on commit 21f9deb

Please sign in to comment.