We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c28d208 commit 4be301dCopy full SHA for 4be301d
types/src/transaction/result.rs
@@ -254,6 +254,10 @@ impl ExecutionFinalResult {
254
self.into_result().unwrap()
255
}
256
257
+ pub fn assert_failure(self) -> ExecutionResult<TxExecutionError> {
258
+ self.into_result().unwrap_err()
259
+ }
260
+
261
/// Deserialize an instance of type `T` from bytes of JSON text sourced from the
262
/// execution result of this call. This conversion can fail if the structure of
263
/// the internal state does not meet up with [`serde::de::DeserializeOwned`]'s
0 commit comments