mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-23 04:06:20 +00:00
Replace unwrap with expect (#1684)
* Replace unwrap with expect * Move expect to call sites * Bubble errors up and trap * Update wasm * Update invalid pointer * Remove test which makes problems in CI * Check for underflow
This commit is contained in:
1 parent
e5ac7f0957
commit
de4bb87bea
5 files changed
+136
-66
No files matched your search
@@ -59,6 +59,7 @@ impl_stubs!(
|
||||
b"all ok!".to_vec()
|
||||
},
|
||||
test_empty_return => |_| Vec::new(),
|
||||
test_exhaust_heap => |_| Vec::with_capacity(16777216),
|
||||
test_panic => |_| panic!("test panic"),
|
||||
test_conditional_panic => |input: &[u8]| {
|
||||
if input.len() > 0 {
|
||||
|
||||
Reference in new issue
Block a user