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

Compatible with Codec & Wasm32 #3

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

yrong
Copy link

@yrong yrong commented Dec 21, 2023

No description provided.

use scale_info::TypeInfo;
use sp_core::RuntimeDebug;

#[derive(PartialEq, Clone, Encode, Decode, TypeInfo, MaxEncodedLen, RuntimeDebug)]
Copy link

@vgeddes vgeddes Jan 11, 2024

Choose a reason for hiding this comment

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

Actually, lets rather not add a dependency on RuntimeDebug, by replacing it with:

Suggested change
#[derive(PartialEq, Clone, Encode, Decode, TypeInfo, MaxEncodedLen, RuntimeDebug)]
#[derive(PartialEq, Clone, Encode, Decode, TypeInfo, MaxEncodedLen)]
#[cfg_attr(feature = "std", derive(Debug))]

@vgeddes
Copy link

vgeddes commented Jan 11, 2024

@yrong there are merge conflicts listed below, so I can't review this properly.

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.

2 participants