Questions tagged [features]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
39 views

Can zepter help with std feature propagation?

Zepter has been great for pointing out runtime benchmark features that need propagating. I use it like so: zepter lint propagate-feature --feature runtime-benchmarks --left-side-feature-missing=ignore ...
Squirrel's user avatar
  • 3,759
2 votes
2 answers
34 views

How to compile polkadot node with only rococo runtime

When I build polkadot with cargo build --release it builds all the runtimes including Polkadot, Kusama, Rococo, Westend. This is a lot to compile and most of it is not needed. In my case, I'm testing ...
JoshOrndorff's user avatar
  • 1,115
0 votes
1 answer
38 views

How to implement EIP-2612 permit in rust !ink

I am trying to implement EIP-2612 permit functionality in my psp22 contract. https://github.com/ethereum/EIPs/blob/8a34d644aacf0f9f8f00815307fd7dd5da07655f/EIPS/eip-2612.md But not sure how to do it. ...
Wolf's user avatar
  • 61
5 votes
1 answer
196 views

error[E0046]: not all trait items implemented, missing: `try_successful_origin`

I am seeing this compile error with the xcm-builder when building our chain w/Polkadot 0.9.38. What should I change to fix it? This issue is also discussed here https://github.com/paritytech/subport/...
Robert La Ferla's user avatar
2 votes
1 answer
39 views

how to conditionally compile functions in pallet::call?

Im trying to have my pallet compile a pallet call based on the feature that is set, for example if i have two function calls feature_one() and feature_two(), it works fine with feature_one but when i ...
dadzerlaze's user avatar
  • 1,073
3 votes
2 answers
79 views

How to conditionally include an extrinsic with a rustc feature?

Hey Substrate Community, is there a way to annotate a extrinsic call function with the Rust cfg condition compile execution? #[cfg_attr(feature = "with-global-disputes", pallet::weight(T::...
Chralt's user avatar
  • 503
0 votes
1 answer
24 views

Hitting compilation issues while testing Substrate PR#11818 - Allow `construct_runtime` to take cfg attributes for pallets

Find the source I have been working with at: https://github.com/al3mart/substrate-node-template/tree/al3mart/runtime-featuregated. While building a node using the feature-gated runtimes added in https:...
Alejandro Martínez's user avatar