Commit efda57a8 authored by Hero Bird's avatar Hero Bird

[pdsl_model] Add ExecutionEnv const constructor

parent fc8e8139
......@@ -14,6 +14,12 @@ pub struct ExecutionEnv<State>{
pub state: State,
}
impl<State> ExecutionEnv<State> {
pub const fn new(state: State) -> Self {
ExecutionEnv { state }
}
}
impl<State> ExecutionEnv<State> {
pub fn caller(&self) -> Address {
ContractEnv::caller()
......
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