pub fn validate_program(code: Vec<u8>) -> Result<()>
Validates wasm code in the same way as pallet_gear::pallet::Pallet::upload_program(...).
pallet_gear::pallet::Pallet::upload_program(...)