From 6db0ba46813dec2e79c6b16d3eb16a13ef88c09c Mon Sep 17 00:00:00 2001 From: stepit <48993133+0xstepit@users.noreply.github.com> Date: Mon, 11 Dec 2023 10:43:02 +0100 Subject: [PATCH] Add getter for ChainID in BaseApp (#50) --- baseapp/baseapp.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/baseapp/baseapp.go b/baseapp/baseapp.go index 9b4faa5376ed..1cca808ed799 100644 --- a/baseapp/baseapp.go +++ b/baseapp/baseapp.go @@ -1074,3 +1074,8 @@ func NoOpProcessProposal() sdk.ProcessProposalHandler { func (app *BaseApp) Close() error { return nil } + +// ChainID returns the chainID of the BaseApp. +func (app *BaseApp) ChainID() string { + return app.chainID +}