Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: chainbridge's pallet storage prefixes fixed #301

Merged
merged 2 commits into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ 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

## [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
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
Loading