Fix typos in the tests (#4452)

This commit is contained in:
Pierre Grimaud
2023-07-12 22:05:21 +02:00
committed by GitHub
parent 8b72e20e32
commit 921ac49ccb
2 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ contract('GovernorWithParams', function (accounts) {
ethSigUtil.signTypedMessage(privateKey, { data: await this.data(contract, message) }); ethSigUtil.signTypedMessage(privateKey, { data: await this.data(contract, message) });
}); });
it('suports EOA signatures', async function () { it('supports EOA signatures', async function () {
await this.token.delegate(this.voterBySig.address, { from: voter2 }); await this.token.delegate(this.voterBySig.address, { from: voter2 });
const weight = web3.utils.toBN(web3.utils.toWei('7')).sub(rawParams.uintParam); const weight = web3.utils.toBN(web3.utils.toWei('7')).sub(rawParams.uintParam);

View File

@ -81,7 +81,7 @@ class GovernorHelper {
...concatOpts(proposal.shortProposal, opts), ...concatOpts(proposal.shortProposal, opts),
); );
default: default:
throw new Error(`unsuported visibility "${visibility}"`); throw new Error(`unsupported visibility "${visibility}"`);
} }
} }