Open Kripth opened 6 months ago
When decompiling a cast it seems that the outer parentheses are optimised away.
cast
Example:
fun test(a: u64): u256 { (a as u256) } // decompiles to fun test(arg0: u64) : u256 { arg0 as u256 }
When a cast is not the outer operator it is decompiled correctly:
fun test(a: u64): u256 { ((a as u128) as u256) } // decompiles to fun test(arg0: u64) : u256 { (arg0 as u128) as u256 }
thanks for the bug report. do you want to make a PR to fix this?
fixed in the "dev" branch now, can you confirm?
When decompiling a
cast
it seems that the outer parentheses are optimised away.Example:
When a cast is not the outer operator it is decompiled correctly: