Skip to content

Commit

Permalink
api: add Api::default_call method
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Jan 15, 2025
1 parent 5eb21d8 commit 02fea6d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions api/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,13 @@ impl Api {
}
}

pub fn default_call(&self) -> Option<&CallState> {
match self {
Api::Embedded(api) => api.default_call.as_ref(),
Api::Alu(api) => api.default_call.as_ref(),
}
}

pub fn verifier(&self, method: impl Into<MethodName>) -> Option<CallId> {
let method = method.into();
match self {
Expand Down

0 comments on commit 02fea6d

Please sign in to comment.