Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
parv0888 committed Aug 9, 2023
1 parent 1da6733 commit 4c4c5d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions concordium-cis2/src/cis2_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ pub enum Cis2ClientError<T> {
InvokeContractError(InvokeContractError<T>),
/// The response from the contract could not be parsed.
ParseResult,
/// The response was not as expected, for example the response is an empty vector for
/// a single query.
/// The response was not as expected, for example the response is an empty
/// vector for a single query.
InvalidResponse,
}

Expand Down Expand Up @@ -214,7 +214,7 @@ impl Cis2Client {
let mut res: OperatorOfQueryResponse =
self.invoke_contract_read_only(host, OPERATOR_OF_ENTRYPOINT_NAME, params)?;
let res = res.0.pop().ok_or(Cis2ClientError::InvalidResponse)?;

Ok(res)
}

Expand Down

0 comments on commit 4c4c5d5

Please sign in to comment.