Skip to main content

New answers tagged

1 vote
Accepted

How to fix `cargo clippy` error for `#[pallet::call]` and `#[pallet::generate_deposit(pub(crate) fn deposit_event)]`

You can't fix these clippy errors locally. If you want to keep #![warn(clippy::missing_docs_in_private_items)]. Those code is generated by a macro defined in upstream. You'll need to submit a PR to ...
AurevoirXavier's user avatar
  • 10.7k
1 vote
Accepted

How to Funnel All Runtime Calls Through a Custom Pallet in Substrate?

I don't think that video will work either. It only sets up a call for the user to make and cannot intercept any runtime calls if the user interacts with other pallets. safe-mode pallet might be a good ...
AurevoirXavier's user avatar
  • 10.7k
1 vote
Accepted

Is there a way to use a crate that depends on the `std` in substrate OCW?

I'm not sure why it was designed this way, but I understand how it works. Perhaps they intended for the OCW to run anywhere since it's part of the WASM blob. Therefore, everything is compiled into ...
AurevoirXavier's user avatar
  • 10.7k

Top 50 recent answers are included