Skip to content

Conversation

@iajoiner
Copy link
Contributor

Rationale for this change

We no longer create tables with snapshot.

@iajoiner iajoiner requested review from a team as code owners September 24, 2025 07:48
@github-actions
Copy link

github-actions bot commented Sep 24, 2025

1.31.1

Bug Fixes

  • remove and from pallet tables (8310410

/// From a preexisting commitment
FromSnapshot(SnapshotUrl, TableCommitmentBytesPerCommitmentScheme),
/// An empty commitment
Empty(CommitmentSchemeFlags),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tlovell-sxt Shall we just remove this enum? Do we plan to add more variants?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I kinda think we should just remove the enum. Technically either way is pretty breaking, but I believe lots of things around this will be changing downstream soon anyway.

…entCreationCmd::FromSnapshot ` from pallet tables

/// Clear schemas and tables from chain state for all namespaces and identifiers
#[pallet::call_index(3)]
#[pallet::call_index(1)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think there's really a need to adjust the call indices, I think they're allowed to have gaps and it's less breaking to let calls sit on their indices

#[derive(Clone, Encode, Decode, Eq, PartialEq, RuntimeDebug, TypeInfo, MaxEncodedLen)]
pub enum CommitmentCreationCmd {
/// From a preexisting commitment
FromSnapshot(SnapshotUrl, TableCommitmentBytesPerCommitmentScheme),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can SnapshotUrl be removed?

/// From a preexisting commitment
FromSnapshot(SnapshotUrl, TableCommitmentBytesPerCommitmentScheme),
/// An empty commitment
Empty(CommitmentSchemeFlags),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I kinda think we should just remove the enum. Technically either way is pretty breaking, but I believe lots of things around this will be changing downstream soon anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants