Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 12 additions & 1 deletion rename_chain/main.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build renamechain
// +build renamechain

package main

Expand Down Expand Up @@ -188,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") {
Expand Down Expand Up @@ -267,6 +273,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 {
Expand Down