Skip to content

Commit

Permalink
chore(evm): enabled debug rpc api on localnet (#2019)
Browse files Browse the repository at this point in the history
* chore(evm): enabled debug rpc api on localnet

* chore: changelog update

---------

Co-authored-by: Unique Divine <[email protected]>
  • Loading branch information
onikonychev and Unique-Divine authored Aug 28, 2024
1 parent 95ba4af commit 7ae2443
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [#2008](https://github.com/NibiruChain/nibiru/pull/2008) - refactor(evm): clean up precompile setups
- [#2013](https://github.com/NibiruChain/nibiru/pull/2013) - chore(evm): Set appropriate gas value for the required gas of the "IFunToken.sol" precompile.
- [#2014](https://github.com/NibiruChain/nibiru/pull/2014) - feat(evm): Emit block bloom event in EndBlock hook.
- [#2019](https://github.com/NibiruChain/nibiru/pull/2019) - chore(evm): enabled debug rpc api on localnet.

#### Dapp modules: perp, spot, oracle, etc

Expand Down
4 changes: 3 additions & 1 deletion contrib/make/build.mk
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ ldflags := $(strip $(ldflags))
BUILD_FLAGS := -tags "$(build_tags)" -ldflags '$(ldflags)'
CGO_CFLAGS := -I$(TEMPDIR)/include
CGO_LDFLAGS := -L$(TEMPDIR)/lib
ifneq ($(OS_NAME),darwin)
ifeq ($(OS_NAME),darwin)
CGO_LDFLAGS += -lrocksdb -lstdc++ -lz -lbz2
else
CGO_LDFLAGS += -static -lm -lbz2
endif

Expand Down
3 changes: 3 additions & 0 deletions contrib/scripts/localnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ sed -i $SEDOPTION '/\[grpc\]/,+3 s/enable = false/enable = true/' $CHAIN_DIR/con
echo_info "config/app.toml: Enabling JSON API server"
sed -i $SEDOPTION '/\[json\-rpc\]/,+3 s/enable = false/enable = true/' $CHAIN_DIR/config/app.toml

echo_info "config/app.toml: Enabling debug evm api"
sed -i $SEDOPTION '/\[json\-rpc\]/,+13 s/api = "eth,net,web3"/api = "eth,net,web3,debug"/' $CHAIN_DIR/config/app.toml

# Enable Swagger Docs
echo_info "config/app.toml: Enabling Swagger Docs"
sed -i $SEDOPTION 's/swagger = false/swagger = true/' $CHAIN_DIR/config/app.toml
Expand Down

0 comments on commit 7ae2443

Please sign in to comment.