mirror of
https://github.com/semaphore-protocol/semaphore.git
synced 2026-04-28 03:00:41 -04:00
9 lines
301 B
JavaScript
9 lines
301 B
JavaScript
const fs = require("fs");
|
|
const solidityRegex = /pragma solidity \^\d+\.\d+\.\d+/
|
|
|
|
process.chdir('./contracts');
|
|
const content = fs.readFileSync("Verifier.sol", { encoding: 'utf-8' });
|
|
const bumped = content.replace(solidityRegex, 'pragma solidity ^0.8.0');
|
|
|
|
|
|
fs.writeFileSync("Verifier.sol", bumped); |