Fix many spelling errors (#3274)
This commit is contained in:
@ -25,7 +25,7 @@ function genOperation (target, value, data, predecessor, salt) {
|
||||
return { id, target, value, data, predecessor, salt };
|
||||
}
|
||||
|
||||
function genOperationBatch (targets, values, datas, predecessor, salt) {
|
||||
function genOperationBatch (targets, values, payloads, predecessor, salt) {
|
||||
const id = web3.utils.keccak256(web3.eth.abi.encodeParameters([
|
||||
'address[]',
|
||||
'uint256[]',
|
||||
@ -35,11 +35,11 @@ function genOperationBatch (targets, values, datas, predecessor, salt) {
|
||||
], [
|
||||
targets,
|
||||
values,
|
||||
datas,
|
||||
payloads,
|
||||
predecessor,
|
||||
salt,
|
||||
]));
|
||||
return { id, targets, values, datas, predecessor, salt };
|
||||
return { id, targets, values, payloads, predecessor, salt };
|
||||
}
|
||||
|
||||
contract('TimelockController', function (accounts) {
|
||||
@ -119,7 +119,7 @@ contract('TimelockController', function (accounts) {
|
||||
expect(await this.timelock.hashOperationBatch(
|
||||
this.operation.targets,
|
||||
this.operation.values,
|
||||
this.operation.datas,
|
||||
this.operation.payloads,
|
||||
this.operation.predecessor,
|
||||
this.operation.salt,
|
||||
)).to.be.equal(this.operation.id);
|
||||
@ -163,7 +163,7 @@ contract('TimelockController', function (accounts) {
|
||||
.to.be.bignumber.equal(web3.utils.toBN(block.timestamp).add(MINDELAY));
|
||||
});
|
||||
|
||||
it('prevent overwritting active operation', async function () {
|
||||
it('prevent overwriting active operation', async function () {
|
||||
await this.timelock.schedule(
|
||||
this.operation.target,
|
||||
this.operation.value,
|
||||
@ -346,7 +346,7 @@ contract('TimelockController', function (accounts) {
|
||||
const receipt = await this.timelock.scheduleBatch(
|
||||
this.operation.targets,
|
||||
this.operation.values,
|
||||
this.operation.datas,
|
||||
this.operation.payloads,
|
||||
this.operation.predecessor,
|
||||
this.operation.salt,
|
||||
MINDELAY,
|
||||
@ -358,7 +358,7 @@ contract('TimelockController', function (accounts) {
|
||||
index: web3.utils.toBN(i),
|
||||
target: this.operation.targets[i],
|
||||
value: web3.utils.toBN(this.operation.values[i]),
|
||||
data: this.operation.datas[i],
|
||||
data: this.operation.payloads[i],
|
||||
predecessor: this.operation.predecessor,
|
||||
delay: MINDELAY,
|
||||
});
|
||||
@ -370,11 +370,11 @@ contract('TimelockController', function (accounts) {
|
||||
.to.be.bignumber.equal(web3.utils.toBN(block.timestamp).add(MINDELAY));
|
||||
});
|
||||
|
||||
it('prevent overwritting active operation', async function () {
|
||||
it('prevent overwriting active operation', async function () {
|
||||
await this.timelock.scheduleBatch(
|
||||
this.operation.targets,
|
||||
this.operation.values,
|
||||
this.operation.datas,
|
||||
this.operation.payloads,
|
||||
this.operation.predecessor,
|
||||
this.operation.salt,
|
||||
MINDELAY,
|
||||
@ -385,7 +385,7 @@ contract('TimelockController', function (accounts) {
|
||||
this.timelock.scheduleBatch(
|
||||
this.operation.targets,
|
||||
this.operation.values,
|
||||
this.operation.datas,
|
||||
this.operation.payloads,
|
||||
this.operation.predecessor,
|
||||
this.operation.salt,
|
||||
MINDELAY,
|
||||
@ -400,7 +400,7 @@ contract('TimelockController', function (accounts) {
|
||||
this.timelock.scheduleBatch(
|
||||
this.operation.targets,
|
||||
[],
|
||||
this.operation.datas,
|
||||
this.operation.payloads,
|
||||
this.operation.predecessor,
|
||||
this.operation.salt,
|
||||
MINDELAY,
|
||||
@ -430,7 +430,7 @@ contract('TimelockController', function (accounts) {
|
||||
this.timelock.scheduleBatch(
|
||||
this.operation.targets,
|
||||
this.operation.values,
|
||||
this.operation.datas,
|
||||
this.operation.payloads,
|
||||
this.operation.predecessor,
|
||||
this.operation.salt,
|
||||
MINDELAY,
|
||||
@ -445,7 +445,7 @@ contract('TimelockController', function (accounts) {
|
||||
this.timelock.scheduleBatch(
|
||||
this.operation.targets,
|
||||
this.operation.values,
|
||||
this.operation.datas,
|
||||
this.operation.payloads,
|
||||
this.operation.predecessor,
|
||||
this.operation.salt,
|
||||
MINDELAY - 1,
|
||||
@ -472,7 +472,7 @@ contract('TimelockController', function (accounts) {
|
||||
this.timelock.executeBatch(
|
||||
this.operation.targets,
|
||||
this.operation.values,
|
||||
this.operation.datas,
|
||||
this.operation.payloads,
|
||||
this.operation.predecessor,
|
||||
this.operation.salt,
|
||||
{ from: executor },
|
||||
@ -486,7 +486,7 @@ contract('TimelockController', function (accounts) {
|
||||
({ receipt: this.receipt, logs: this.logs } = await this.timelock.scheduleBatch(
|
||||
this.operation.targets,
|
||||
this.operation.values,
|
||||
this.operation.datas,
|
||||
this.operation.payloads,
|
||||
this.operation.predecessor,
|
||||
this.operation.salt,
|
||||
MINDELAY,
|
||||
@ -499,7 +499,7 @@ contract('TimelockController', function (accounts) {
|
||||
this.timelock.executeBatch(
|
||||
this.operation.targets,
|
||||
this.operation.values,
|
||||
this.operation.datas,
|
||||
this.operation.payloads,
|
||||
this.operation.predecessor,
|
||||
this.operation.salt,
|
||||
{ from: executor },
|
||||
@ -516,7 +516,7 @@ contract('TimelockController', function (accounts) {
|
||||
this.timelock.executeBatch(
|
||||
this.operation.targets,
|
||||
this.operation.values,
|
||||
this.operation.datas,
|
||||
this.operation.payloads,
|
||||
this.operation.predecessor,
|
||||
this.operation.salt,
|
||||
{ from: executor },
|
||||
@ -535,7 +535,7 @@ contract('TimelockController', function (accounts) {
|
||||
const receipt = await this.timelock.executeBatch(
|
||||
this.operation.targets,
|
||||
this.operation.values,
|
||||
this.operation.datas,
|
||||
this.operation.payloads,
|
||||
this.operation.predecessor,
|
||||
this.operation.salt,
|
||||
{ from: executor },
|
||||
@ -546,7 +546,7 @@ contract('TimelockController', function (accounts) {
|
||||
index: web3.utils.toBN(i),
|
||||
target: this.operation.targets[i],
|
||||
value: web3.utils.toBN(this.operation.values[i]),
|
||||
data: this.operation.datas[i],
|
||||
data: this.operation.payloads[i],
|
||||
});
|
||||
}
|
||||
});
|
||||
@ -556,7 +556,7 @@ contract('TimelockController', function (accounts) {
|
||||
this.timelock.executeBatch(
|
||||
this.operation.targets,
|
||||
this.operation.values,
|
||||
this.operation.datas,
|
||||
this.operation.payloads,
|
||||
this.operation.predecessor,
|
||||
this.operation.salt,
|
||||
{ from: other },
|
||||
@ -570,7 +570,7 @@ contract('TimelockController', function (accounts) {
|
||||
this.timelock.executeBatch(
|
||||
[],
|
||||
this.operation.values,
|
||||
this.operation.datas,
|
||||
this.operation.payloads,
|
||||
this.operation.predecessor,
|
||||
this.operation.salt,
|
||||
{ from: executor },
|
||||
@ -584,7 +584,7 @@ contract('TimelockController', function (accounts) {
|
||||
this.timelock.executeBatch(
|
||||
this.operation.targets,
|
||||
[],
|
||||
this.operation.datas,
|
||||
this.operation.payloads,
|
||||
this.operation.predecessor,
|
||||
this.operation.salt,
|
||||
{ from: executor },
|
||||
@ -633,7 +633,7 @@ contract('TimelockController', function (accounts) {
|
||||
await this.timelock.scheduleBatch(
|
||||
operation.targets,
|
||||
operation.values,
|
||||
operation.datas,
|
||||
operation.payloads,
|
||||
operation.predecessor,
|
||||
operation.salt,
|
||||
MINDELAY,
|
||||
@ -644,7 +644,7 @@ contract('TimelockController', function (accounts) {
|
||||
this.timelock.executeBatch(
|
||||
operation.targets,
|
||||
operation.values,
|
||||
operation.datas,
|
||||
operation.payloads,
|
||||
operation.predecessor,
|
||||
operation.salt,
|
||||
{ from: executor },
|
||||
|
||||
@ -215,7 +215,7 @@ contract('GovernorCompatibilityBravo', function (accounts) {
|
||||
|
||||
describe('should revert', function () {
|
||||
describe('on propose', function () {
|
||||
it('if proposal doesnt meet proposalThreshold', async function () {
|
||||
it('if proposal does not meet proposalThreshold', async function () {
|
||||
await expectRevert(
|
||||
this.helper.propose({ from: other }),
|
||||
'GovernorCompatibilityBravo: proposer votes below proposal threshold',
|
||||
|
||||
@ -106,13 +106,13 @@ class GovernorHelper {
|
||||
opts,
|
||||
)))
|
||||
: vote.params
|
||||
// otherwize if params
|
||||
// otherwise if params
|
||||
? this.governor.castVoteWithReasonAndParams(...concatOpts(
|
||||
[ proposal.id, vote.support, vote.reason || '', vote.params ],
|
||||
opts,
|
||||
))
|
||||
: vote.reason
|
||||
// otherwize if reason
|
||||
// otherwise if reason
|
||||
? this.governor.castVoteWithReason(...concatOpts(
|
||||
[ proposal.id, vote.support, vote.reason ],
|
||||
opts,
|
||||
@ -165,7 +165,7 @@ class GovernorHelper {
|
||||
|
||||
const descriptionHash = web3.utils.keccak256(description);
|
||||
|
||||
// condensed version for queing end executing
|
||||
// condensed version for queueing end executing
|
||||
const shortProposal = [
|
||||
targets,
|
||||
values,
|
||||
|
||||
@ -47,7 +47,7 @@ function split (signature) {
|
||||
web3.utils.bytesToHex(raw.slice(32, 64)), // s
|
||||
];
|
||||
default:
|
||||
expect.fail('Invalid siganture length, cannot split');
|
||||
expect.fail('Invalid signature length, cannot split');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -69,7 +69,7 @@ contract('DoubleEndedQueue', function (accounts) {
|
||||
describe('push', function () {
|
||||
it('front', async function () {
|
||||
await this.deque.pushFront(bytesD);
|
||||
this.content.unshift(bytesD); // add element at the begining
|
||||
this.content.unshift(bytesD); // add element at the beginning
|
||||
|
||||
expect(await getContent(this.deque)).to.have.ordered.members(this.content);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user