Fix some typos in comments (#1878)

Signed-off-by: CoolCu <coolcui@qq.com>
This commit is contained in:
CoolCu 2024-04-17 02:54:09 +08:00 committed by GitHub
parent 72e8641c8d
commit 1b6f1468ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 8 deletions

View File

@ -493,7 +493,7 @@ func (suite *EIP712TestSuite) TestEIP712Tx() {
usdxToMintAmt: 99, usdxToMintAmt: 99,
}, },
{ {
name: "fails when convertion more erc20 usdc than balance", name: "fails when conversion more erc20 usdc than balance",
usdcDepositAmt: 51_000, usdcDepositAmt: 51_000,
usdxToMintAmt: 100, usdxToMintAmt: 100,
errMsg: "transfer amount exceeds balance", errMsg: "transfer amount exceeds balance",

View File

@ -5,7 +5,7 @@ It contains the default weights used for each transaction used on the module's
simulation. These weights define the chance for a transaction to be simulated at simulation. These weights define the chance for a transaction to be simulated at
any gived operation. any gived operation.
You can repace the default values for the weights by providing a params.json You can replace the default values for the weights by providing a params.json
file with the weights defined for each of the transaction operations: file with the weights defined for each of the transaction operations:
{ {

View File

@ -136,7 +136,7 @@ func (suite *tallyHandlerSuite) TestTallyOutcomes() {
passes, burns, tally := suite.tallier.Tally(suite.ctx, proposal) passes, burns, tally := suite.tallier.Tally(suite.ctx, proposal)
suite.Falsef(passes, "expected proposal to fail, tally: %v", tally) suite.Falsef(passes, "expected proposal to fail, tally: %v", tally)
suite.Truef(burns, "expected desposit to be burned, tally: %v", tally) suite.Truef(burns, "expected deposit to be burned, tally: %v", tally)
}) })
suite.Run("VetoedFails", func() { suite.Run("VetoedFails", func() {
suite.SetupTest() suite.SetupTest()
@ -151,7 +151,7 @@ func (suite *tallyHandlerSuite) TestTallyOutcomes() {
passes, burns, tally := suite.tallier.Tally(suite.ctx, proposal) passes, burns, tally := suite.tallier.Tally(suite.ctx, proposal)
suite.Falsef(passes, "expected proposal to fail, tally: %v", tally) suite.Falsef(passes, "expected proposal to fail, tally: %v", tally)
suite.Truef(burns, "expected desposit to be burned, tally: %v", tally) suite.Truef(burns, "expected deposit to be burned, tally: %v", tally)
}) })
suite.Run("UnvetoedAndYesAboveThresholdPasses", func() { suite.Run("UnvetoedAndYesAboveThresholdPasses", func() {
suite.SetupTest() suite.SetupTest()
@ -168,7 +168,7 @@ func (suite *tallyHandlerSuite) TestTallyOutcomes() {
passes, burns, tally := suite.tallier.Tally(suite.ctx, proposal) passes, burns, tally := suite.tallier.Tally(suite.ctx, proposal)
suite.Truef(passes, "expected proposal to pass, tally: %v", tally) suite.Truef(passes, "expected proposal to pass, tally: %v", tally)
suite.Falsef(burns, "expected desposit to not burn, tally: %v", tally) suite.Falsef(burns, "expected deposit to not burn, tally: %v", tally)
}) })
suite.Run("UnvetoedAndYesBelowThresholdFails", func() { suite.Run("UnvetoedAndYesBelowThresholdFails", func() {
suite.SetupTest() suite.SetupTest()
@ -185,7 +185,7 @@ func (suite *tallyHandlerSuite) TestTallyOutcomes() {
passes, burns, tally := suite.tallier.Tally(suite.ctx, proposal) passes, burns, tally := suite.tallier.Tally(suite.ctx, proposal)
suite.Falsef(passes, "expected proposal to pass, tally: %v", tally) suite.Falsef(passes, "expected proposal to pass, tally: %v", tally)
suite.Falsef(burns, "expected desposit to not burn, tally: %v", tally) suite.Falsef(burns, "expected deposit to not burn, tally: %v", tally)
}) })
suite.Run("NotEnoughStakeFails", func() { suite.Run("NotEnoughStakeFails", func() {
suite.SetupTest() suite.SetupTest()
@ -197,7 +197,7 @@ func (suite *tallyHandlerSuite) TestTallyOutcomes() {
passes, burns, tally := suite.tallier.Tally(suite.ctx, proposal) passes, burns, tally := suite.tallier.Tally(suite.ctx, proposal)
suite.Falsef(passes, "expected proposal to pass, tally: %v", tally) suite.Falsef(passes, "expected proposal to pass, tally: %v", tally)
suite.Falsef(burns, "expected desposit to not burn, tally: %v", tally) suite.Falsef(burns, "expected deposit to not burn, tally: %v", tally)
}) })
suite.Run("UnvetoedAndAllAbstainedFails", func() { suite.Run("UnvetoedAndAllAbstainedFails", func() {
suite.SetupTest() suite.SetupTest()
@ -210,7 +210,7 @@ func (suite *tallyHandlerSuite) TestTallyOutcomes() {
passes, burns, tally := suite.tallier.Tally(suite.ctx, proposal) passes, burns, tally := suite.tallier.Tally(suite.ctx, proposal)
suite.Falsef(passes, "expected proposal to pass, tally: %v", tally) suite.Falsef(passes, "expected proposal to pass, tally: %v", tally)
suite.Falsef(burns, "expected desposit to not burn, tally: %v", tally) suite.Falsef(burns, "expected deposit to not burn, tally: %v", tally)
}) })
} }