Skip to content

Commit

Permalink
Eth2Near-relayer: fix decoding success status (#884)
Browse files Browse the repository at this point in the history
  • Loading branch information
karim-en authored Apr 4, 2023
1 parent 4b071f3 commit 562265d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions eth2near/contract_wrapper/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ pub fn trim_quotes(s: String) -> String {
}

pub fn status_as_success_decoded(status: FinalExecutionStatus) -> Option<Vec<u8>> {
let success = match status {
match status {
FinalExecutionStatus::SuccessValue(value) => Some(value),
_ => None,
};
success.and_then(|value| near_sdk::base64::decode(&value).ok())
}
}

pub fn new_near_rpc_client(timeout: Option<std::time::Duration>) -> reqwest::Client {
Expand Down

0 comments on commit 562265d

Please sign in to comment.