Skip to content

Commit

Permalink
feat: fix add prefix, replace test-contract to test-solidity
Browse files Browse the repository at this point in the history
  • Loading branch information
dudong2 committed Nov 30, 2023
1 parent 0249796 commit 57b520b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ jobs:
- name: Test contract
run: |
sudo make contract-tools
sudo make test-contract
sudo make test-solidity
if: env.GIT_DIFF
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ endif

ifeq (, $(shell which go-bindata))
@echo "Installing go-bindata..."
@go get github.com/kevinburke/go-bindata/go-bindata
@go get github.com/kevinburke/go-bindata
else
@echo "go-bindata already installed; skipping..."
endif
Expand Down Expand Up @@ -357,7 +357,7 @@ test-solidity:
./scripts/run-solidity-tests.sh


.PHONY: run-tests test test-all test-import test-rpc test-contract test-solidity $(TEST_TARGETS)
.PHONY: run-tests test test-all test-import test-rpc test-solidity $(TEST_TARGETS)


benchmark:
Expand Down
6 changes: 3 additions & 3 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ func NewEthermintApp(
runtime.NewKVStoreService(keys[authtypes.StoreKey]),
ethermint.ProtoAccount,
maccPerms,
authcodec.NewBech32Codec(sdk.Bech32MainPrefix),
authcodec.NewBech32Codec(sdk.GetConfig().GetBech32AccountAddrPrefix()),
sdk.Bech32MainPrefix,
authtypes.NewModuleAddress(govtypes.ModuleName).String(),
)
Expand All @@ -392,8 +392,8 @@ func NewEthermintApp(
app.AccountKeeper,
app.BankKeeper,
authtypes.NewModuleAddress(govtypes.ModuleName).String(),
authcodec.NewBech32Codec(sdk.Bech32PrefixValAddr),
authcodec.NewBech32Codec(sdk.Bech32PrefixConsAddr),
authcodec.NewBech32Codec(sdk.GetConfig().GetBech32ValidatorAddrPrefix()),
authcodec.NewBech32Codec(sdk.GetConfig().GetBech32ConsensusAddrPrefix()),
)
app.MintKeeper = mintkeeper.NewKeeper(
appCodec,
Expand Down

0 comments on commit 57b520b

Please sign in to comment.