Sfoglia il codice sorgente

runtime: staking-handler: Add no_std module marker.

Shamil Gadelshin 4 anni fa
parent
commit
e009107abd
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      runtime-modules/staking-handler/src/lib.rs

+ 3 - 0
runtime-modules/staking-handler/src/lib.rs

@@ -1,3 +1,6 @@
+// Ensure we're `no_std` when compiling for Wasm.
+#![cfg_attr(not(feature = "std"), no_std)]
+
 use frame_support::dispatch::{DispatchError, DispatchResult};
 use frame_support::traits::{Currency, Get, LockIdentifier, LockableCurrency, WithdrawReasons};
 use sp_arithmetic::traits::Zero;