Skip to content

Commit

Permalink
update code
Browse files Browse the repository at this point in the history
  • Loading branch information
maggie98choy committed Sep 20, 2024
1 parent b8b8e9c commit 012e509
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/main/src/state/openrpc_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ impl OpenRpcState {
if v.add_extension_open_rpc(&path).is_err() {
error!("Error adding extn_sdk from {path}");
}
if v.load_extension_open_rpc_to_validator(path).is_err() {
error!("Error loading openrpc extn_sdk to validator");
if v.add_extension_open_rpc_to_validator(path).is_err() {
error!("Error adding openrpc extn_sdk to validator");
}
}

Expand All @@ -180,7 +180,7 @@ impl OpenRpcState {
}

// Add extension open rpc to the validator
pub fn load_extension_open_rpc_to_validator(&self, path: String) -> Result<(), RippleError> {
pub fn add_extension_open_rpc_to_validator(&self, path: String) -> Result<(), RippleError> {
let extension_open_rpc_string = load_extension_open_rpc(path);
if let Some(open_rpc) = extension_open_rpc_string {
return match serde_json::from_str::<FireboltOpenRpcValidator>(&open_rpc) {
Expand Down

0 comments on commit 012e509

Please sign in to comment.