diff --git a/concordium-grpc-api b/concordium-grpc-api index 30ebd6231..7d7e61af3 160000 --- a/concordium-grpc-api +++ b/concordium-grpc-api @@ -1 +1 @@ -Subproject commit 30ebd62312470f7dbb93309a4fc58e9082d0fedc +Subproject commit 7d7e61af30df406de28955364e3ced2a86950d86 diff --git a/rust-src/concordium_base/CHANGELOG.md b/rust-src/concordium_base/CHANGELOG.md index ccd391dee..d7f9a5ab7 100644 --- a/rust-src/concordium_base/CHANGELOG.md +++ b/rust-src/concordium_base/CHANGELOG.md @@ -3,6 +3,7 @@ - Add constructor `TokenAddress::new` for CIS2 type `TokenAddress`. - Introduce new chain parameters `ValidatorScoreParameters` that contain the threshold of maximal missed rounds before a validator gets suspended. +- Add `Default` instance for `UpdateSequenceNumber`. ## 6.0.0 diff --git a/rust-src/concordium_base/src/base.rs b/rust-src/concordium_base/src/base.rs index 72ccf98d9..b1a83325c 100644 --- a/rust-src/concordium_base/src/base.rs +++ b/rust-src/concordium_base/src/base.rs @@ -350,7 +350,7 @@ impl Nonce { #[serde(transparent)] #[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Debug, FromStr, Display, From, Into)] /// Equivalent of a transaction nonce but for update instructions. Update -/// sequence numbers are per update type. +/// sequence numbers are per update type. The minimum sequence number is 1. pub struct UpdateSequenceNumber { pub number: u64, } @@ -369,6 +369,10 @@ impl UpdateSequenceNumber { pub fn next_mut(&mut self) { self.number += 1; } } +impl Default for UpdateSequenceNumber { + fn default() -> Self { Self { number: 1 } } +} + #[repr(transparent)] #[derive(SerdeSerialize, SerdeDeserialize, Serialize)] #[serde(transparent)]