mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-26 00:05:18 +00:00
Fix some typos in comments (#1878)
Signed-off-by: CoolCu <coolcui@qq.com>
This commit is contained in:
parent
72e8641c8d
commit
1b6f1468ec
@ -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",
|
||||||
|
@ -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:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -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)
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user