Transaction permissioning (#6441)
This commit is contained in:
committed by
Gav Wood
parent
2df61d0a8c
commit
eed0e8b03a
@@ -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),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user