From 524144f4afd069e62e487f9908d37ecb75d4c315 Mon Sep 17 00:00:00 2001 From: javiersuweijie Date: Tue, 4 Jul 2023 15:03:44 +0800 Subject: [PATCH] fix: default denom --- sync.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sync.go b/sync.go index cd08184..b4afe39 100644 --- a/sync.go +++ b/sync.go @@ -55,6 +55,11 @@ func main() { sdkConfig.SetBech32PrefixForConsensusNode(consNodeAddressPrefix, consNodePubKeyPrefix) sdkConfig.SetAddressVerifier(wasmtypes.VerifyAddressLen()) + err := sdk.RegisterDenom(coreconfig.BondDenom, sdk.NewDecWithPrec(1, 6)) + if err != nil { + panic(err) + } + sdkConfig.Seal() ldb, ldbErr := heleveldb.NewLevelDBDriver(&heleveldb.DriverConfig{