File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ The logic for `SumContract` is the summation of two numerical values:
1919syntax = "proto3";
2020package protocol;
2121option java_package = "org.tron.protos.contract"; //Specify the name of the package that generated the Java file
22- option go_package = "github.com/tronprotocol/grpc-gateway/core";
2322message SumContract {
2423 int64 param1 = 1;
2524 int64 param2 = 2;
@@ -53,13 +52,6 @@ Then add an `InvokeSum` interface in the Wallet service:
5352``` protobuf
5453service Wallet {
5554 rpc InvokeSum (SumContract) returns (Transaction) {
56- option (google.api.http) = {
57- post: "/wallet/invokesum"
58- body: "*"
59- additional_bindings {
60- get: "/wallet/invokesum"
61- }
62- };
6355 };
6456 ...
6557};
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ Actuator 模块抽象出4个方法并定义在 `Actuator` 接口中:
2121syntax = "proto3";
2222package protocol;
2323option java_package = "org.tron.protos.contract"; //Specify the name of the package that generated the Java file
24- option go_package = "github.com/tronprotocol/grpc-gateway/core";
2524message SumContract {
2625 int64 param1 = 1;
2726 int64 param2 = 2;
@@ -55,13 +54,6 @@ import "core/contract/math_contract.proto";
5554``` protobuf
5655service Wallet {
5756 rpc InvokeSum (SumContract) returns (Transaction) {
58- option (google.api.http) = {
59- post: "/wallet/invokesum"
60- body: "*"
61- additional_bindings {
62- get: "/wallet/invokesum"
63- }
64- };
6557 };
6658 ...
6759};
You can’t perform that action at this time.
0 commit comments