Use serde as optional for std build at ContractsRegistry
#![cfg_attr(not(feature = "std"), no_std)]
use codec::{Decode, Encode};
+#[cfg(feature = "std")]
use serde::{Deserialize, Serialize};
use sp_runtime::traits::Hash;
use sp_runtime::RuntimeDebug;
