8000 Derive primitive types with `DecodeWithMemTracking` · Issue #2500 · use-ink/ink · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Derive primitive types with DecodeWithMemTracking #2500

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

Open
pandres95 opened this issue May 3, 2025 · 0 comments
Open

Derive primitive types with DecodeWithMemTracking #2500

pandres95 opened this issue May 3, 2025 · 0 comments

Comments

@pandres95
Copy link
pandres95 commented May 3, 2025

In some cases, a library might require that a type implement frame_support::traits::Parameter, which implies implementing DecodeWithMemTracking.

In my case, a library implemented on the runtime and contract side requires a config trait to define the AccountId type. I used ink::primitives::AccountId, but this type (at ink 5.1.1) doesn't implement such a trait.

Image

Is it possible to derive the trait on the primitive types?

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

No branches or pull requests

1 participant
0