Skip to content
Commit 48a02bb0 authored by Oliver Tale-Yazdi's avatar Oliver Tale-Yazdi Committed by GitHub
Browse files

Add `DefensiveTruncateFrom` (#12515)



* Add DefensiveTruncateFrom

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Add tests

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Fix tests

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Map_err in preimage

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Map_err in beefy

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Make test dependant in debug-assertions

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
Co-authored-by: parity-processbot <>
parent 92d29772
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment