diff --git a/eth2near/contract_wrapper/src/utils.rs b/eth2near/contract_wrapper/src/utils.rs index 1f85b232..1ed8067e 100644 --- a/eth2near/contract_wrapper/src/utils.rs +++ b/eth2near/contract_wrapper/src/utils.rs @@ -13,11 +13,10 @@ pub fn trim_quotes(s: String) -> String { } pub fn status_as_success_decoded(status: FinalExecutionStatus) -> Option> { - 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) -> reqwest::Client {