Skip to content

Commit

Permalink
chore: fix some comments (#409)
Browse files Browse the repository at this point in the history
Signed-off-by: fivecut <fivecut@126.com>
  • Loading branch information
fivecut authored Jul 26, 2024
1 parent ba9dff0 commit 5f8f1fc
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/params/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
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:
{
Expand Down
2 changes: 1 addition & 1 deletion app/upgrades/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type Upgrade struct {
StoreUpgrades store.StoreUpgrades
}

// BaseAppParamManager defines an interrace that BaseApp is expected to fullfil
// BaseAppParamManager defines an interface that BaseApp is expected to fulfill
// that allows upgrade handlers to modify BaseApp parameters.
type AppManager interface {
GetConsensusParams(ctx sdk.Context) *tmproto.ConsensusParams
Expand Down
2 changes: 1 addition & 1 deletion testing/ibctesting/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func NewDefaultEndpoint(chain *TestChain) *Endpoint {
}
}

// QueryProof queries proof associated with this endpoint using the lastest client state
// QueryProof queries proof associated with this endpoint using the latest client state
// height on the counterparty chain.
func (endpoint *Endpoint) QueryProof(key []byte) ([]byte, clienttypes.Height) {
// obtain the counterparty client representing the chain associated with the endpoint
Expand Down
2 changes: 1 addition & 1 deletion x/oracle/keeper/oracle_script_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func TestAddOracleScriptFile(t *testing.T) {
app, _ := bandtesting.CreateTestApp(t, true)
k := app.OracleKeeper

// Code should be perferctly compilable.
// Code should be perfectly compilable.
compiledCode, err := bandtesting.OwasmVM.Compile(testdata.WasmExtra1, types.MaxCompiledWasmCodeSize)
require.NoError(t, err)
// We start by adding the Owasm content to the storage.
Expand Down
2 changes: 1 addition & 1 deletion x/oracle/keeper/report_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func TestGetReportCount(t *testing.T) {
app, ctx := bandtesting.CreateTestApp(t, true)
k := app.OracleKeeper

// We start by setting some aribrary reports.
// We start by setting some arbitrary reports.
k.SetReport(ctx, types.RequestID(1), types.NewReport(bandtesting.Alice.ValAddress, true, []types.RawReport{}))
k.SetReport(ctx, types.RequestID(1), types.NewReport(bandtesting.Bob.ValAddress, true, []types.RawReport{}))
k.SetReport(ctx, types.RequestID(2), types.NewReport(bandtesting.Alice.ValAddress, true, []types.RawReport{}))
Expand Down
2 changes: 1 addition & 1 deletion x/oracle/types/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var (
PendingResolveListStoreKey = append(GlobalStoreKeyPrefix, []byte("PendingList")...)
// DataSourceCountStoreKey is the key that keeps the total data source count.
DataSourceCountStoreKey = append(GlobalStoreKeyPrefix, []byte("DataSourceCount")...)
// OracleScriptCountStoreKey is the key that keeps the total oracle sciprt count.
// OracleScriptCountStoreKey is the key that keeps the total oracle script count.
OracleScriptCountStoreKey = append(GlobalStoreKeyPrefix, []byte("OracleScriptCount")...)

// RequestStoreKeyPrefix is the prefix for request store.
Expand Down

0 comments on commit 5f8f1fc

Please sign in to comment.