Skip to content

Commit

Permalink
Release 5.1.3 (#303)
Browse files Browse the repository at this point in the history
### Description
<!-- Describe what change this PR is implementing -->

### Types of Changes
<!--- What types of changes does your code introduce? -->
- [ ] Tech Debt (Code improvements)
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Dependency upgrade (A change in substrate or any 3rd party crate
version)

### Migrations and Hooks
<!--- Check the following box with an x if the following applies: -->
- [ ] This change requires a runtime migration.
- [ ] Modifies `on_initialize`
- [ ] Modifies `on_finalize`

### Checklist
<!--- All boxes need to be checked. Follow this checklist before
requiring PR review -->
- [ ] Change has been tested locally.
- [ ] Change adds / updates tests.
- [x] Changelog doc updated.

---------

Co-authored-by: rakanalh <[email protected]>
Co-authored-by: Maksim Ramanenkau <[email protected]>
  • Loading branch information
3 people authored Apr 13, 2024
1 parent c58e78a commit f1b973c
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 26 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- ...

## [5.1.3]

### Changed

- [C,D] Fixed prefixes for ChainBridge's pallet storage items
- [C,D] Fixed prefixes for ERC721 pallet storage items

## [5.1.2]

### Changed
Expand Down
32 changes: 16 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace.package]
version = "5.1.2"
version = "5.1.3"
authors = ["Cerebellum-Network"]
edition = "2021"
homepage = "https://cere.network/"
Expand Down
10 changes: 5 additions & 5 deletions pallets/chainbridge/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,27 +158,27 @@ pub mod pallet {
/// All whitelisted chains and their respective transaction counts
#[pallet::storage]
#[pallet::getter(fn chains)]
pub type ChainNonces<T: Config> = StorageMap<_, Blake2_128Concat, ChainId, DepositNonce>;
pub type ChainNonces<T: Config> = StorageMap<_, Blake2_256, ChainId, DepositNonce>;

/// Tracks current relayer set
#[pallet::storage]
#[pallet::getter(fn relayers)]
pub type Relayers<T: Config> = StorageMap<_, Blake2_128Concat, T::AccountId, bool>;
pub type Relayers<T: Config> = StorageMap<_, Blake2_256, T::AccountId, bool>;

/// Utilized by the bridge software to map resource IDs to actual methods
#[pallet::storage]
#[pallet::getter(fn resources)]
pub type Resources<T: Config> = StorageMap<_, Blake2_128Concat, ResourceId, Vec<u8>>;
pub type Resources<T: Config> = StorageMap<_, Blake2_256, ResourceId, Vec<u8>>;

/// All known proposals.
/// The key is the hash of the call and the deposit ID, to ensure it's unique
#[pallet::storage]
#[pallet::getter(fn votes)]
pub type Votes<T: Config> = StorageDoubleMap<
_,
Blake2_128Concat,
Blake2_256,
ChainId,
Blake2_128Concat,
Blake2_256,
(DepositNonce, T::Proposal),
ProposalVotes<T::AccountId, BlockNumberFor<T>>,
>;
Expand Down
4 changes: 2 additions & 2 deletions pallets/erc721/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ pub mod pallet {
/// Maps tokenId to Erc721 object
#[pallet::storage]
#[pallet::getter(fn tokens)]
pub type Tokens<T: Config> = StorageMap<_, Blake2_128Concat, TokenId, Erc721Token>;
pub type Tokens<T: Config> = StorageMap<_, Blake2_256, TokenId, Erc721Token>;

/// Maps tokenId to owner
#[pallet::storage]
#[pallet::getter(fn owner_of)]
pub type TokenOwner<T: Config> = StorageMap<_, Blake2_128Concat, TokenId, T::AccountId>;
pub type TokenOwner<T: Config> = StorageMap<_, Blake2_256, TokenId, T::AccountId>;

#[pallet::type_value]
pub fn DefaultTokenCount<T: Config>() -> U256 {
Expand Down
2 changes: 1 addition & 1 deletion runtime/cere-dev/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// and set impl_version to 0. If only runtime
// implementation changes and behavior does not, then leave spec_version as
// is and increment impl_version.
spec_version: 51200,
spec_version: 51300,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 15,
Expand Down
2 changes: 1 addition & 1 deletion runtime/cere/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// and set impl_version to 0. If only runtime
// implementation changes and behavior does not, then leave spec_version as
// is and increment impl_version.
spec_version: 51200,
spec_version: 51300,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 15,
Expand Down

0 comments on commit f1b973c

Please sign in to comment.