Skip to content

Commit 95c90ff

Browse files
authored
chore: refactor string formatting with f-strings (#195)
1 parent b6fa078 commit 95c90ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/bn256.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def decompose_field_element(a):
2727
# a = a3 * 2^192 + a2 * 2^128 + a1 * 2^64 + a0
2828
def format_field_element(a):
2929
[a0, a1, a2, a3] = decompose_field_element(a);
30-
return "Fr([" + hex(a0) + "," + hex(a1) + "," + hex(a2) + "," + hex(a3) + "]),\n"
30+
return f"Fr([{hex(a0)},{hex(a1)},{hex(a2)},{hex(a3)}]),\n"
3131

3232

3333
f = open("src/bn256/fr/table.rs", "w")

0 commit comments

Comments
 (0)