diff --git a/acir_field/src/generic_ark.rs b/acir_field/src/generic_ark.rs index 76518d3ca..e583db858 100644 --- a/acir_field/src/generic_ark.rs +++ b/acir_field/src/generic_ark.rs @@ -43,7 +43,13 @@ impl std::fmt::Display for FieldElement { break; } } - return write!(f, "2{}", superscript(bit_index)); + return match bit_index { + 0 => write!(f, "1"), + 1 => write!(f, "2"), + 2 => write!(f, "4"), + 3 => write!(f, "8"), + _ => write!(f, "2{}", superscript(bit_index)), + }; } // Check if number is a multiple of a power of 2.