difftreelog
Merge branch 'develop' into feature/ci-refactoring
in: master
6 files changed
crates/evm-coder/procedural/src/solidity_interface.rsdiffbeforeafterboth719 }719 }720 } else {720 } else {721 quote! {#pascal_name}721 quote! {722 #(#[doc = #docs])*723 #[allow(missing_docs)]724 #pascal_name725 }722 }726 }788792789 quote! {793 quote! {790 #call_name::#pascal_name #matcher => {794 #call_name::#pascal_name #matcher => {795 #[allow(deprecated)]791 let result = #receiver #name(796 let result = #receiver #name(792 #(797 #(793 #args,798 #args,crates/evm-coder/procedural/src/to_log.rsdiffbeforeafterboth--- a/crates/evm-coder/procedural/src/to_log.rs
+++ b/crates/evm-coder/procedural/src/to_log.rs
@@ -194,7 +194,7 @@
#(
#consts
)*
-
+ /// Generate solidity definitions for methods described in this interface
pub fn generate_solidity_interface(tc: &evm_coder::solidity::TypeCollector, is_impl: bool) {
use evm_coder::solidity::*;
use core::fmt::Write;
pallets/common/src/erc.rsdiffbeforeafterboth--- a/pallets/common/src/erc.rs
+++ b/pallets/common/src/erc.rs
@@ -64,6 +64,7 @@
/// Does not always represent a full collection, for RFT it is either
/// collection (Implementing ERC721), or specific collection token (Implementing ERC20).
pub trait CommonEvmHandler {
+ /// Raw compiled binary code of the contract stub
const CODE: &'static [u8];
/// Call precompiled handle.
pallets/common/src/weights.rsdiffbeforeafterboth--- a/pallets/common/src/weights.rs
+++ b/pallets/common/src/weights.rs
@@ -26,6 +26,7 @@
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]
+#![allow(missing_docs)]
#![allow(clippy::unnecessary_cast)]
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
pallets/evm-contract-helpers/src/lib.rsdiffbeforeafterboth--- a/pallets/evm-contract-helpers/src/lib.rs
+++ b/pallets/evm-contract-helpers/src/lib.rs
@@ -172,7 +172,7 @@
>;
#[pallet::event]
- #[pallet::generate_deposit(pub fn deposit_event)]
+ #[pallet::generate_deposit(fn deposit_event)]
pub enum Event<T: Config> {
/// Contract sponsor was set.
ContractSponsorSet(
@@ -350,6 +350,7 @@
pub fn sponsoring_mode(contract: H160) -> SponsoringModeT {
<SponsoringMode<T>>::get(contract)
.or_else(|| {
+ #[allow(deprecated)]
<SelfSponsoring<T>>::get(contract).then(|| SponsoringModeT::Allowlisted)
})
.unwrap_or_default()
@@ -362,6 +363,7 @@
} else {
<SponsoringMode<T>>::insert(contract, mode);
}
+ #[allow(deprecated)]
<SelfSponsoring<T>>::remove(contract)
}
@@ -424,6 +426,7 @@
_ => return None,
})
}
+ #[allow(dead_code)]
fn to_eth(self) -> u8 {
match self {
SponsoringModeT::Disabled => 0,
pallets/refungible/src/lib.rsdiffbeforeafterboth--- a/pallets/refungible/src/lib.rs
+++ b/pallets/refungible/src/lib.rs
@@ -137,7 +137,6 @@
/// for the convenience of database access. Notably contains the token metadata.
#[struct_versioning::versioned(version = 2, upper)]
#[derive(Encode, Decode, Default, TypeInfo, MaxEncodedLen)]
-#[deprecated(since = "0.2.0", note = "ItemData is no more contains usefull data")]
pub struct ItemData {
pub const_data: BoundedVec<u8, CustomDataLimit>,
@@ -279,7 +278,8 @@
fn on_runtime_upgrade() -> Weight {
let storage_version = StorageVersion::get::<Pallet<T>>();
if storage_version < StorageVersion::new(2) {
- <TokenData<T>>::remove_all(None);
+ #[allow(deprecated)]
+ let _ = <TokenData<T>>::clear(u32::MAX, None);
}
StorageVersion::new(2).put::<Pallet<T>>();