fix: proto-gen broken env var (#723)

* fix: proto-gen broken env var

* add ethereumTx http option

Co-authored-by: Freddy Caceres <freddy.caceres@crypto.com>
This commit is contained in:
Akash Khosla 2021-11-06 15:01:58 -07:00 committed by GitHub
parent d82b5c20c0
commit 882dd4e2e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -419,7 +419,7 @@ proto-all: proto-format proto-lint proto-gen
proto-gen: proto-gen:
@echo "Generating Protobuf files" @echo "Generating Protobuf files"
@if docker ps -a --format '{{.Names}}' | grep -Eq "^${containerProtoGen}$$"; then docker start -a $(containerProtoGen); else docker run --name $(containerProtoGen) -v $(CURDIR):/workspace --workdir /workspace $(protoImageName) \ @if docker ps -a --format '{{.Names}}' | grep -Eq "^${containerProtoGen}$$"; then docker start -a $(containerProtoGen); else docker run --name $(containerProtoGen) -v $(CURDIR):/workspace --workdir /workspace $(containerProtoImage) \
sh ./scripts/protocgen.sh; fi sh ./scripts/protocgen.sh; fi
proto-swagger-gen: proto-swagger-gen:

View File

@ -2,6 +2,7 @@ syntax = "proto3";
package ethermint.evm.v1; package ethermint.evm.v1;
import "gogoproto/gogo.proto"; import "gogoproto/gogo.proto";
import "google/api/annotations.proto";
import "google/protobuf/any.proto"; import "google/protobuf/any.proto";
import "cosmos_proto/cosmos.proto"; import "cosmos_proto/cosmos.proto";
import "ethermint/evm/v1/evm.proto"; import "ethermint/evm/v1/evm.proto";
@ -11,7 +12,9 @@ option go_package = "github.com/tharsis/ethermint/x/evm/types";
// Msg defines the evm Msg service. // Msg defines the evm Msg service.
service Msg { service Msg {
// EthereumTx defines a method submitting Ethereum transactions. // EthereumTx defines a method submitting Ethereum transactions.
rpc EthereumTx(MsgEthereumTx) returns (MsgEthereumTxResponse); rpc EthereumTx(MsgEthereumTx) returns (MsgEthereumTxResponse) {
option (google.api.http).get = "/ethermint/evm/v1/ethereum_tx";
};
} }
// MsgEthereumTx encapsulates an Ethereum transaction as an SDK message. // MsgEthereumTx encapsulates an Ethereum transaction as an SDK message.