Fix await missing versioned

This commit is contained in:
Jordi Baylina 2020-07-28 13:16:43 +02:00
parent 4916068cd6
commit acc66cee7a
No known key found for this signature in database
GPG Key ID: 7480C80C1BE43112
4 changed files with 11 additions and 11 deletions

@ -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

File diff suppressed because one or more lines are too long