Skip to content

Commit

Permalink
Merge branch 'main' into remove-dynerr
Browse files Browse the repository at this point in the history
  • Loading branch information
al8n authored Jun 9, 2024
2 parents 7aff4eb + 7cde4e7 commit 82c9623
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rust/src/contract_interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@ impl Display for ContractInstanceId {

/// A complete key specification, that represents a cryptographic hash that identifies the contract.
#[serde_as]
#[derive(Debug, Eq, Clone, Serialize, Deserialize)]
#[derive(Debug, Eq, Copy, Clone, Serialize, Deserialize)]
#[cfg_attr(any(feature = "testing", test), derive(arbitrary::Arbitrary))]
pub struct ContractKey {
instance: ContractInstanceId,
Expand Down
2 changes: 1 addition & 1 deletion rust/src/versioning.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ impl ContractContainer {
/// Return the `ContractKey` from the specific contract version.
pub fn key(&self) -> ContractKey {
match self {
Self::Wasm(ContractWasmAPIVersion::V1(contract_v1)) => contract_v1.key().clone(),
Self::Wasm(ContractWasmAPIVersion::V1(contract_v1)) => *contract_v1.key(),
}
}

Expand Down

0 comments on commit 82c9623

Please sign in to comment.