Commit b9fcd9f0 authored by Hero Bird's avatar Hero Bird

[pdsl_model] Make ContractDecl::new const fn

parent 2063ed1e
......@@ -131,7 +131,7 @@ where
impl ContractDecl<EmptyContractState, NoDeployArgs, UnreachableMessageHandler> {
/// Creates a new contract declaration with the given name.
pub fn new<State>() -> ContractDecl<State, NoDeployArgs, UnreachableMessageHandler> {
pub const fn new<State>() -> ContractDecl<State, NoDeployArgs, UnreachableMessageHandler> {
ContractDecl {
state: PhantomData,
deployer: DeployHandler::init(),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment