diff --git a/framework/base/Cargo.toml b/framework/base/Cargo.toml index 189b015bd4..292d04ddf7 100644 --- a/framework/base/Cargo.toml +++ b/framework/base/Cargo.toml @@ -2,7 +2,6 @@ name = "multiversx-sc" version = "0.50.5" edition = "2021" -rust-version = "1.78" authors = ["Andrei Marinica ", "MultiversX "] license = "GPL-3.0-only" diff --git a/framework/base/src/types/interaction/tx_data/tx_code_source.rs b/framework/base/src/types/interaction/tx_data/tx_code_source.rs index 0d3c180e16..e7bb0817ea 100644 --- a/framework/base/src/types/interaction/tx_data/tx_code_source.rs +++ b/framework/base/src/types/interaction/tx_data/tx_code_source.rs @@ -14,11 +14,6 @@ where { } -#[diagnostic::on_unimplemented( - message = "Type `{Self}` cannot be used as code (does not implement `TxCodeValue<{Env}>`)", - label = "not a valid smart contract byte code", - note = "there are multiple ways to specify SC byte code, but `{Self}` is not one of them" -)] pub trait TxCodeValue: AnnotatedValue> where Env: TxEnv, @@ -44,11 +39,6 @@ where { } -#[diagnostic::on_unimplemented( - message = "Type `{Self}` cannot be used as code source value (does not implement `TxFromSourceValue<{Env}>`)", - label = "not an address from where to copy the code", - note = "there are multiple ways to specify a code source address, but `{Self}` is not one of them" -)] pub trait TxFromSourceValue: AnnotatedValue> where Env: TxEnv, diff --git a/framework/base/src/types/interaction/tx_from.rs b/framework/base/src/types/interaction/tx_from.rs index 674796e64f..ff5dd73b88 100644 --- a/framework/base/src/types/interaction/tx_from.rs +++ b/framework/base/src/types/interaction/tx_from.rs @@ -13,11 +13,6 @@ where /// Marks the non-empty sender of a transaction. /// /// Enforces the reciipent to be explicitly specified. -#[diagnostic::on_unimplemented( - message = "Type `{Self}` cannot be used as a sender value (does not implement `TxFromSpecified<{Env}>`)", - label = "sender needs to be explicit", - note = "there are multiple ways to specify the sender value for a transaction, but `{Self}` is not one of them" -)] pub trait TxFromSpecified: TxFrom + AnnotatedValue> where diff --git a/framework/base/src/types/interaction/tx_gas.rs b/framework/base/src/types/interaction/tx_gas.rs index 2e03cc1470..098eafdd2c 100644 --- a/framework/base/src/types/interaction/tx_gas.rs +++ b/framework/base/src/types/interaction/tx_gas.rs @@ -33,11 +33,6 @@ where } } -#[diagnostic::on_unimplemented( - message = "Type `{Self}` cannot be used as gas value (does not implement `TxGasValue<{Env}>`)", - label = "not a valid value for gas", - note = "there are multiple ways to specify the gas value for a transaction, but `{Self}` is not one of them" -)] pub trait TxGasValue: AnnotatedValue where Env: TxEnv, diff --git a/framework/base/src/types/interaction/tx_payment.rs b/framework/base/src/types/interaction/tx_payment.rs index c5bcc10637..5abb38c6ee 100644 --- a/framework/base/src/types/interaction/tx_payment.rs +++ b/framework/base/src/types/interaction/tx_payment.rs @@ -24,11 +24,6 @@ use crate::{ use super::{AnnotatedValue, FunctionCall, TxEnv, TxFrom, TxToSpecified}; /// Describes a payment that is part of a transaction. -#[diagnostic::on_unimplemented( - message = "Type `{Self}` cannot be used as payment (does not implement `TxPayment<{Env}>`)", - label = "not a valid payment type", - note = "there are multiple ways to specify the transaction payment, but `{Self}` is not one of them" -)] pub trait TxPayment where Env: TxEnv, diff --git a/framework/base/src/types/interaction/tx_result_handler_list/tx_result_handler_list_item.rs b/framework/base/src/types/interaction/tx_result_handler_list/tx_result_handler_list_item.rs index 9ca98bac65..54e1d0cfa3 100644 --- a/framework/base/src/types/interaction/tx_result_handler_list/tx_result_handler_list_item.rs +++ b/framework/base/src/types/interaction/tx_result_handler_list/tx_result_handler_list_item.rs @@ -3,11 +3,6 @@ use crate::types::TxEnv; /// Result handler list item. /// /// It acts as a result handler that produces a single result. -#[diagnostic::on_unimplemented( - message = "Type `{Self}` cannot be used as a decoder result handler (does not implement `RHListItem<{Env}>`)", - label = "not a valid decoder result handler", - note = "there are multiple ways to specify the result handling, but `{Self}` is not one of them" -)] pub trait RHListItem where Env: TxEnv, diff --git a/framework/base/src/types/interaction/tx_to.rs b/framework/base/src/types/interaction/tx_to.rs index 41d5d4ce39..18530bc1ee 100644 --- a/framework/base/src/types/interaction/tx_to.rs +++ b/framework/base/src/types/interaction/tx_to.rs @@ -14,11 +14,6 @@ impl TxTo for () where Env: TxEnv {} /// Marks the non-empty recipient of a transaction. /// /// Enforces the recipient to be explicitly specified. -#[diagnostic::on_unimplemented( - message = "Type `{Self}` cannot be used as recipient value (does not implement `TxToSpecified<{Env}>`)", - label = "recipient needs to be explicit", - note = "there are multiple ways to specify the recipient value for a transaction, but `{Self}` is not one of them" -)] pub trait TxToSpecified: TxTo + AnnotatedValue> where Env: TxEnv,