Explorar o código

error: Correct error string for wasm failed exit

parazyd %!s(int64=3) %!d(string=hai) anos
pai
achega
bc9b25bf1f
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      src/error.rs

+ 1 - 2
src/error.rs

@@ -360,9 +360,8 @@ pub enum Error {
     #[error("wasm runtime out of memory")]
     WasmerOomError(String),
 
-    // TODO: FIXME: The strings are wrong
     #[cfg(feature = "darkfi-sdk")]
-    #[error("contract initialize error")]
+    #[error("Contract execution failed")]
     ContractError(darkfi_sdk::error::ContractError),
 
     #[cfg(feature = "wasm-runtime")]