Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: yihuang <huang@crypto.com> Co-authored-by: mmsqe <mavis@crypto.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com> Co-authored-by: Alex | Interchain Labs <alex@interchainlabs.io> Co-authored-by: Tyler <48813565+technicallyty@users.noreply.github.com> Co-authored-by: FT <140458077+zeevick10@users.noreply.github.com> Co-authored-by: VolodymyrBg <aqdrgg19@gmail.com> Co-authored-by: GarmashAlex <garmasholeksii@gmail.com> Co-authored-by: kilavvy <140459108+kilavvy@users.noreply.github.com> Co-authored-by: Maxim Evtush <154841002+maximevtush@users.noreply.github.com> Co-authored-by: fuder.eth <139509124+vtjl10@users.noreply.github.com> Co-authored-by: leopardracer <136604165+leopardracer@users.noreply.github.com> Co-authored-by: MozirDmitriy <dmitriymozir@gmail.com> Co-authored-by: Avory <avorycorelli@gmail.com> Co-authored-by: mmsqe <tqd0800210105@gmail.com> Co-authored-by: julienrbrt <julien@rbrt.fr> Co-authored-by: Aaron <aaronc@users.noreply.github.com> Co-authored-by: Vlad J <vladjdk@gmail.com> Co-authored-by: Thomas Nguy <thomas.nguy@crypto.com>
24 lines
451 B
Go
24 lines
451 B
Go
package baseapp
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"github.com/cometbft/cometbft/abci/types"
|
|
|
|
"cosmossdk.io/core/genesis"
|
|
)
|
|
|
|
var _ genesis.TxHandler = (*BaseApp)(nil)
|
|
|
|
// ExecuteGenesisTx implements genesis.GenesisState from
|
|
// cosmossdk.io/core/genesis to set initial state in genesis
|
|
func (ba *BaseApp) ExecuteGenesisTx(tx []byte) error {
|
|
res := ba.deliverTx(tx, nil, -1, nil)
|
|
|
|
if res.Code != types.CodeTypeOK {
|
|
return errors.New(res.Log)
|
|
}
|
|
|
|
return nil
|
|
}
|