Skip to content

Commit

Permalink
Merge pull request #395 from icon-project/fix/handle_error_auth
Browse files Browse the repository at this point in the history
fix: Add auth on handle_error
  • Loading branch information
AntonAndell authored Oct 13, 2024
2 parents 231a239 + e76f07b commit a9365e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contracts/soroban/contracts/xcall/src/handle_message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ pub fn handle_reply(
}

pub fn handle_error(env: &Env, sender: Address, sequence_no: u128) -> Result<(), ContractError> {
sender.require_auth();
let cs_message_result = CSMessageResult::new(
sequence_no,
CSResponseType::CSResponseFailure,
Expand Down

0 comments on commit a9365e3

Please sign in to comment.