Skip to content

Commit deb01c2

Browse files
committed
fix
1 parent 3f508ef commit deb01c2

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

barretenberg/cpp/src/barretenberg/srs/factories/get_bn254_crs.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ std::vector<uint8_t> download_bn254_g1_data(size_t num_points)
99
size_t g1_end = num_points * sizeof(bb::g1::affine_element) - 1;
1010

1111
// Safe command construction with numeric interpolation and hardcoded URL
12-
auto data = bb::exec_pipe_safe(
13-
literal_string("curl -H \"Range: bytes=0-"), g1_end, literal_string("\" 'https://crs.aztec.network/g1.dat'"));
12+
auto data = bb::exec_pipe_safe(bb::literal_string("curl -H \"Range: bytes=0-"),
13+
g1_end,
14+
bb::literal_string("\" 'https://crs.aztec.network/g1.dat'"));
1415
// Header + num_points * sizeof point.
1516
if (data.size() < g1_end) {
1617
throw_or_abort("Failed to download g1 data.");
@@ -22,7 +23,7 @@ std::vector<uint8_t> download_bn254_g1_data(size_t num_points)
2223
std::vector<uint8_t> download_bn254_g2_data()
2324
{
2425
// Safe command with hardcoded URL - using exec_pipe_safe with single literal
25-
return bb::exec_pipe_safe(literal_string("curl 'https://crs.aztec.network/g2.dat'"));
26+
return bb::exec_pipe_safe(bb::literal_string("curl 'https://crs.aztec.network/g2.dat'"));
2627
}
2728
} // namespace
2829

barretenberg/cpp/src/barretenberg/srs/factories/get_grumpkin_crs.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ std::vector<uint8_t> download_grumpkin_g1_data(size_t num_points)
1111
size_t g1_end = num_points * sizeof(bb::curve::Grumpkin::AffineElement) - 1;
1212

1313
// Safe command construction with numeric interpolation and hardcoded URL
14-
auto data = bb::exec_pipe_safe(literal_string("curl -s -H \"Range: bytes=0-"),
14+
auto data = bb::exec_pipe_safe(bb::literal_string("curl -s -H \"Range: bytes=0-"),
1515
g1_end,
16-
literal_string("\" 'https://crs.aztec.network/grumpkin_g1.dat'"));
16+
bb::literal_string("\" 'https://crs.aztec.network/grumpkin_g1.dat'"));
1717
if (data.size() < g1_end) {
1818
THROW std::runtime_error("Failed to download grumpkin g1 data.");
1919
}

0 commit comments

Comments
 (0)