mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-26 00:05:18 +00:00
fix missed typo and formatting
This commit is contained in:
parent
482c1646e1
commit
bc08afdec4
@ -40,10 +40,10 @@ type KavaApp struct {
|
|||||||
cdc *wire.Codec
|
cdc *wire.Codec
|
||||||
|
|
||||||
// keys to access the substores
|
// keys to access the substores
|
||||||
keyMain *sdk.KVStoreKey
|
keyMain *sdk.KVStoreKey
|
||||||
keyAccount *sdk.KVStoreKey
|
keyAccount *sdk.KVStoreKey
|
||||||
keyStake *sdk.KVStoreKey
|
keyStake *sdk.KVStoreKey
|
||||||
keySlashing *sdk.KVStoreKey
|
keySlashing *sdk.KVStoreKey
|
||||||
keyFeeCollection *sdk.KVStoreKey
|
keyFeeCollection *sdk.KVStoreKey
|
||||||
keyParams *sdk.KVStoreKey
|
keyParams *sdk.KVStoreKey
|
||||||
tkeyParams *sdk.TransientStoreKey
|
tkeyParams *sdk.TransientStoreKey
|
||||||
@ -53,8 +53,8 @@ type KavaApp struct {
|
|||||||
accountMapper auth.AccountMapper
|
accountMapper auth.AccountMapper
|
||||||
feeCollectionKeeper auth.FeeCollectionKeeper
|
feeCollectionKeeper auth.FeeCollectionKeeper
|
||||||
coinKeeper bank.Keeper
|
coinKeeper bank.Keeper
|
||||||
stakeKeeper stake.Keeper
|
stakeKeeper stake.Keeper
|
||||||
slashingKeeper slashing.Keeper
|
slashingKeeper slashing.Keeper
|
||||||
paramsKeeper params.Keeper
|
paramsKeeper params.Keeper
|
||||||
paychanKeeper paychan.Keeper
|
paychanKeeper paychan.Keeper
|
||||||
}
|
}
|
||||||
@ -66,21 +66,21 @@ func NewKavaApp(logger log.Logger, db dbm.DB, traceStore io.Writer, baseAppOptio
|
|||||||
cdc := CreateKavaAppCodec()
|
cdc := CreateKavaAppCodec()
|
||||||
|
|
||||||
// Create a new base app
|
// Create a new base app
|
||||||
bApp := bam.NewBaseApp(appName, logger, db, auth.DefaultTxDecoder(cdc) baseAppOptions...)
|
bApp := bam.NewBaseApp(appName, logger, db, auth.DefaultTxDecoder(cdc), baseAppOptions...)
|
||||||
bApp.SetCommitMultiStoreTracer(traceStore)
|
bApp.SetCommitMultiStoreTracer(traceStore)
|
||||||
|
|
||||||
// Create the kava app, extending baseApp
|
// Create the kava app, extending baseApp
|
||||||
var app = &KavaApp{
|
var app = &KavaApp{
|
||||||
BaseApp: bApp,
|
BaseApp: bApp,
|
||||||
cdc: cdc,
|
cdc: cdc,
|
||||||
keyMain: sdk.NewKVStoreKey("main"),
|
keyMain: sdk.NewKVStoreKey("main"),
|
||||||
keyAccount: sdk.NewKVStoreKey("acc"),
|
keyAccount: sdk.NewKVStoreKey("acc"),
|
||||||
keyStake: sdk.NewKVStoreKey("stake"),
|
keyStake: sdk.NewKVStoreKey("stake"),
|
||||||
keySlashing: sdk.NewKVStoreKey("slashing"),
|
keySlashing: sdk.NewKVStoreKey("slashing"),
|
||||||
keyFeeCollection: sdk.NewKVStoreKey("fee"),
|
keyFeeCollection: sdk.NewKVStoreKey("fee"),
|
||||||
keyParams: sdk.NewKVStoreKey("params"),
|
keyParams: sdk.NewKVStoreKey("params"),
|
||||||
tkeyParams: sdk.NewTransientStoreKey("transient_params"),
|
tkeyParams: sdk.NewTransientStoreKey("transient_params"),
|
||||||
keyPaychan: sdk.NewKVStoreKey("paychan"),
|
keyPaychan: sdk.NewKVStoreKey("paychan"),
|
||||||
}
|
}
|
||||||
|
|
||||||
// Define the accountMapper and base account
|
// Define the accountMapper and base account
|
||||||
|
Loading…
Reference in New Issue
Block a user