Skip to content

Commit

Permalink
Merge branch 'main' into acc-sig-checksd
Browse files Browse the repository at this point in the history
  • Loading branch information
abizjak authored Jul 13, 2023
2 parents 21eb812 + 2a9f71b commit baa3876
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/credential-registry/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ impl<S: HasStateApi> State<S> {
metadata: MetadataUrl,
) -> ContractResult<()> {
if let Some(mut entry) = self.credentials.get_mut(credential_id) {
entry.metadata_url.update(|_| metadata);
*entry.metadata_url = metadata;
Ok(())
} else {
Err(ContractError::CredentialNotFound)
Expand Down
4 changes: 3 additions & 1 deletion templates/default/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg_attr(not(feature = "std"), no_std)]

//! # A Concordium V1 smart contract
use concordium_std::*;
use core::fmt::Debug;
Expand All @@ -13,7 +15,7 @@ pub struct State {
enum Error {
/// Failed parsing the parameter.
#[from(ParseError)]
ParseParamsError,
ParseParams,
/// Your error
YourError,
}
Expand Down

0 comments on commit baa3876

Please sign in to comment.