Skip to content
Commit 3860d7c8 authored by Gavin Wood's avatar Gavin Wood Committed by GitHub
Browse files

Remove `As` (#2602)



* Start to remove the `As` bound on `SimpleArtithmetic`

This just introduces standard numeric bounds, assuming a minimum of
`u32`. Also included is a saturating from/into trait allowing ergonomic
infallible conversion when you don't care if it saturates.

* Remove As from Balances trait

* Remove As from Aura module

* Remove As from Babe module

* Expunge `As` from contract

* Council module

* Democracy

* Finality tracker

* Grandpa

* First bit of indices

* indices

* Line lengths

* session

* system

* Staking

* Square up all other uses of As.

* RHD update

* Fix build/test

* Remove As trait

* line widths

* Remove final As ref

* Update srml/staking/src/lib.rs

Co-Authored-By: default avatarBastian Köcher <[email protected]>

* Update core/client/src/cht.rs

Co-Authored-By: default avatarBastian Köcher <[email protected]>

* Update core/client/db/src/light.rs

Co-Authored-By: default avatarBastian Köcher <[email protected]>

* Apply suggestions from code review

Co-Authored-By: default avatarBastian Köcher <[email protected]>

* whitespace

* Apply suggestions from code review

Co-Authored-By: default avatarBastian Köcher <[email protected]>
Co-Authored-By: default avatarAndré Silva <[email protected]>

* Bring back u32 check for number on CLI
parent 36987c02
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