Transaction permissioning (#6441)

This commit is contained in:
Arkadiy Paronyan
2017-09-05 11:39:50 +02:00
committed by Gav Wood
parent 2df61d0a8c
commit eed0e8b03a
15 changed files with 307 additions and 3 deletions

View File

@@ -302,7 +302,8 @@ fn detokenize(name: &str, output_type: ParamType) -> String {
}
ParamType::Uint(width) => {
let read_uint = match width {
8 | 16 | 32 | 64 => format!("bigint::prelude::U256(u).low_u64() as u{}", width),
8 => "u[31] as u8".into(),
16 | 32 | 64 => format!("BigEndian::read_u{}(&u[{}..])", width, 32 - (width / 8)),
_ => format!("bigint::prelude::U{}::from(&u[..])", width),
};