Fix PageSize on write
This commit is contained in:
parent
ae6d44f41a
commit
40f0822a36
@ -2286,7 +2286,7 @@ async function readBinFile$1(fileName, type, maxVersion) {
|
||||
|
||||
async function createBinFile(fileName, type, version, nSections) {
|
||||
|
||||
const fd = await createOverride(fileName, null, 1<<7);
|
||||
const fd = await createOverride(fileName, null);
|
||||
|
||||
const buff = new Uint8Array(4);
|
||||
for (let i=0; i<4; i++) buff[i] = type.charCodeAt(i);
|
||||
|
@ -756,7 +756,7 @@ async function readBinFile(fileName, type, maxVersion) {
|
||||
|
||||
async function createBinFile(fileName, type, version, nSections) {
|
||||
|
||||
const fd = await createOverride(fileName, null, 1<<7);
|
||||
const fd = await createOverride(fileName, null);
|
||||
|
||||
const buff = new Uint8Array(4);
|
||||
for (let i=0; i<4; i++) buff[i] = type.charCodeAt(i);
|
||||
|
File diff suppressed because one or more lines are too long
2
build/snarkjs.min.js
vendored
2
build/snarkjs.min.js
vendored
File diff suppressed because one or more lines are too long
@ -36,7 +36,7 @@ export async function readBinFile(fileName, type, maxVersion) {
|
||||
|
||||
export async function createBinFile(fileName, type, version, nSections) {
|
||||
|
||||
const fd = await fastFile.createOverride(fileName, null, 1<<7);
|
||||
const fd = await fastFile.createOverride(fileName, null);
|
||||
|
||||
const buff = new Uint8Array(4);
|
||||
for (let i=0; i<4; i++) buff[i] = type.charCodeAt(i);
|
||||
|
@ -478,6 +478,6 @@ export default async function newZKey(r1csName, ptauName, zkeyName, logger) {
|
||||
csHasher.update(buff);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user