Fix typos in testing files (#3899)

This commit is contained in:
Pierre Grimaud
2022-12-29 00:16:56 +01:00
committed by GitHub
parent cafe5eb985
commit b0db207e4e
3 changed files with 8 additions and 8 deletions

View File

@ -16,7 +16,7 @@ import "../proxy/utils/Initializable.sol";
// -- Child -- // -- Child --
/** /**
* Sample base intializable contract that is a human * Sample base initializable contract that is a human
*/ */
contract SampleHuman is Initializable { contract SampleHuman is Initializable {
bool public isHuman; bool public isHuman;
@ -37,7 +37,7 @@ contract SampleHuman is Initializable {
} }
/** /**
* Sample base intializable contract that defines a field mother * Sample base initializable contract that defines a field mother
*/ */
contract SampleMother is Initializable, SampleHuman { contract SampleMother is Initializable, SampleHuman {
uint256 public mother; uint256 public mother;
@ -59,7 +59,7 @@ contract SampleMother is Initializable, SampleHuman {
} }
/** /**
* Sample base intializable contract that defines a field gramps * Sample base initializable contract that defines a field gramps
*/ */
contract SampleGramps is Initializable, SampleHuman { contract SampleGramps is Initializable, SampleHuman {
string public gramps; string public gramps;
@ -81,7 +81,7 @@ contract SampleGramps is Initializable, SampleHuman {
} }
/** /**
* Sample base intializable contract that defines a field father and extends from gramps * Sample base initializable contract that defines a field father and extends from gramps
*/ */
contract SampleFather is Initializable, SampleGramps { contract SampleFather is Initializable, SampleGramps {
uint256 public father; uint256 public father;

View File

@ -454,7 +454,7 @@ contract('Governor', function (accounts) {
await expectRevert(this.helper.propose(), 'Governor: empty proposal'); await expectRevert(this.helper.propose(), 'Governor: empty proposal');
}); });
it('missmatch #1', async function () { it('mismatch #1', async function () {
this.helper.setProposal({ this.helper.setProposal({
targets: [ ], targets: [ ],
values: [ web3.utils.toWei('0') ], values: [ web3.utils.toWei('0') ],
@ -463,7 +463,7 @@ contract('Governor', function (accounts) {
await expectRevert(this.helper.propose(), 'Governor: invalid proposal length'); await expectRevert(this.helper.propose(), 'Governor: invalid proposal length');
}); });
it('missmatch #2', async function () { it('mismatch #2', async function () {
this.helper.setProposal({ this.helper.setProposal({
targets: [ this.receiver.address ], targets: [ this.receiver.address ],
values: [ ], values: [ ],
@ -472,7 +472,7 @@ contract('Governor', function (accounts) {
await expectRevert(this.helper.propose(), 'Governor: invalid proposal length'); await expectRevert(this.helper.propose(), 'Governor: invalid proposal length');
}); });
it('missmatch #3', async function () { it('mismatch #3', async function () {
this.helper.setProposal({ this.helper.setProposal({
targets: [ this.receiver.address ], targets: [ this.receiver.address ],
values: [ web3.utils.toWei('0') ], values: [ web3.utils.toWei('0') ],

View File

@ -168,7 +168,7 @@ contract('GovernorCompatibilityBravo', function (accounts) {
); );
}); });
it('double voting is forbiden', async function () { it('double voting is forbidden', async function () {
await this.helper.propose({ from: proposer }); await this.helper.propose({ from: proposer });
await this.helper.waitForSnapshot(); await this.helper.waitForSnapshot();
await this.helper.vote({ support: Enums.VoteType.For }, { from: voter1 }); await this.helper.vote({ support: Enums.VoteType.For }, { from: voter1 });