Fix await missing versioned
This commit is contained in:
parent
4916068cd6
commit
acc66cee7a
@ -1727,7 +1727,7 @@ async function writePTauHeader(fd, curve, power, ceremonyPower) {
|
||||
|
||||
const oldPos = fd.pos;
|
||||
|
||||
fd.writeULE64(headerSize, pHeaderSize);
|
||||
await fd.writeULE64(headerSize, pHeaderSize);
|
||||
|
||||
fd.pos = oldPos;
|
||||
}
|
||||
@ -1989,7 +1989,7 @@ async function writeContributions(fd, curve, contributions) {
|
||||
|
||||
const oldPos = fd.pos;
|
||||
|
||||
fd.writeULE64(contributionsSize, pContributionsSize);
|
||||
await fd.writeULE64(contributionsSize, pContributionsSize);
|
||||
fd.pos = oldPos;
|
||||
}
|
||||
|
||||
@ -2110,7 +2110,7 @@ async function endWriteSection(fd) {
|
||||
const sectionSize = fd.pos - fd.writingSection.pSectionSize - 8;
|
||||
const oldPos = fd.pos;
|
||||
fd.pos = fd.writingSection.pSectionSize;
|
||||
fd.writeULE64(sectionSize);
|
||||
await fd.writeULE64(sectionSize);
|
||||
fd.pos = oldPos;
|
||||
delete fd.writingSection;
|
||||
}
|
||||
|
@ -584,7 +584,7 @@ async function endWriteSection(fd) {
|
||||
const sectionSize = fd.pos - fd.writingSection.pSectionSize - 8;
|
||||
const oldPos = fd.pos;
|
||||
fd.pos = fd.writingSection.pSectionSize;
|
||||
fd.writeULE64(sectionSize);
|
||||
await fd.writeULE64(sectionSize);
|
||||
fd.pos = oldPos;
|
||||
delete fd.writingSection;
|
||||
}
|
||||
@ -1660,7 +1660,7 @@ async function writePTauHeader(fd, curve, power, ceremonyPower) {
|
||||
|
||||
const oldPos = fd.pos;
|
||||
|
||||
fd.writeULE64(headerSize, pHeaderSize);
|
||||
await fd.writeULE64(headerSize, pHeaderSize);
|
||||
|
||||
fd.pos = oldPos;
|
||||
}
|
||||
@ -1922,7 +1922,7 @@ async function writeContributions(fd, curve, contributions) {
|
||||
|
||||
const oldPos = fd.pos;
|
||||
|
||||
fd.writeULE64(contributionsSize, pContributionsSize);
|
||||
await fd.writeULE64(contributionsSize, pContributionsSize);
|
||||
fd.pos = oldPos;
|
||||
}
|
||||
|
||||
|
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
Loading…
Reference in New Issue
Block a user