From 14fd8ab5d4c45fd8a7517b4f6b5a8da5ac241a62 Mon Sep 17 00:00:00 2001 From: VictorTrustyDev Date: Thu, 6 Mar 2025 15:48:19 +0700 Subject: [PATCH 1/3] fix broken rename-chain due to proto of Evermint native module --- constants/constants.go | 2 +- rename_chain/main.go | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/constants/constants.go b/constants/constants.go index e2c175a876..6ec301c921 100644 --- a/constants/constants.go +++ b/constants/constants.go @@ -15,7 +15,7 @@ const ( ApplicationHome = ".evermint" - GitHubRepo = "https://github.com/EscanBE/evermint" // must be well-formed url pattern: "https://github.com/owner/repo" + GitHubRepo = "https://github.com/EscanBE/" + ApplicationName // must be well-formed url pattern: "https://github.com/owner/repo" ) // Denom diff --git a/rename_chain/main.go b/rename_chain/main.go index b871c73a04..92db02a169 100644 --- a/rename_chain/main.go +++ b/rename_chain/main.go @@ -1,5 +1,4 @@ //go:build renamechain -// +build renamechain package main @@ -267,6 +266,11 @@ func main() { } launchAppWithDirectStd("mv", path.Join("cmd", EvermintOg_ApplicationBinaryName), path.Join("cmd", constants.ApplicationBinaryName)) + + { // fix proto for Ethermint native module + launchAppWithDirectStd("mv", path.Join("proto", splOgGitHub[len(splOgGitHub)-1]), path.Join("proto", splNewGitHub[len(splNewGitHub)-1])) + launchAppWithDirectStd("make", "proto-gen") + } } func isLinux() bool { From 42285a4b19892f27666ae0e927b696d0b841823c Mon Sep 17 00:00:00 2001 From: VictorTrustyDev Date: Thu, 6 Mar 2025 16:02:22 +0700 Subject: [PATCH 2/3] fix broken rename-chain due to mistakenly renamed geth fork in go.mod --- rename_chain/main.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rename_chain/main.go b/rename_chain/main.go index 92db02a169..1b604e6ace 100644 --- a/rename_chain/main.go +++ b/rename_chain/main.go @@ -187,6 +187,13 @@ func main() { sed(path.Join("cmd", EvermintOg_ApplicationBinaryName, "root.go"), strings.ToUpper(EvermintOg_ApplicationName), strings.ToUpper(constants.ApplicationName)) + { // restore dependency in go.mod & go.sum + const invalidGethFork = "github.com/EscanBE/go-ethereum-for-" + constants.ApplicationName + const correctGethFork = "github.com/EscanBE/go-ethereum-for-evermint" + sed("go.mod", invalidGethFork, correctGethFork) + sed("go.sum", invalidGethFork, correctGethFork) + } + patternMarker := regexp.MustCompile(`marker\.(\w+)\("(\w+)"\)`) for _, goFile := range goFiles { if strings.HasSuffix(goFile, "_test.go") { From caef8235675e10de880a43a9bbe6efe719bc32de Mon Sep 17 00:00:00 2001 From: VictorTrustyDev Date: Thu, 6 Mar 2025 16:14:49 +0700 Subject: [PATCH 3/3] update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ceb303370..f03f294d08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -68,6 +68,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ - (app) [#177](https://github.com/EscanBE/evermint/pull/177) Fix staking hooks not available in some keepers - (evm) [#184](https://github.com/EscanBE/evermint/pull/184) Warmup coinbase + custom-precompiled-contracts and fix some tests - (cpc) [#186](https://github.com/EscanBE/evermint/pull/186) Correct genesis import/export for `x/cpc` +- (rename-chain) [#189](https://github.com/EscanBE/evermint/pull/189) Fix broken feature rename-chain ### API Breaking