Skip to content

Commit

Permalink
return bool directly
Browse files Browse the repository at this point in the history
  • Loading branch information
megsdevs committed Dec 10, 2023
1 parent 0e76b5a commit dbd282b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 2 additions & 1 deletion proto/valorem/trade/v1/auth.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
syntax = "proto3";

import "types.proto";
import "google/protobuf/wrappers.proto";

package valorem.trade.v1;

Expand All @@ -18,7 +19,7 @@ service Auth {
rpc Authenticate (Empty) returns (H160);

// Used to check if a given connection is geofenced. If access is restricted, returns true, otherwise false.
rpc Geofenced (Empty) returns (BoolResponse);
rpc Geofenced (Empty) returns (google.protobuf.BoolValue);

// Returns the SIWE Session for the request's sessionId
rpc Session (Empty) returns (SiweSession);
Expand Down
5 changes: 0 additions & 5 deletions proto/valorem/trade/v1/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,5 @@ message EthSignature {
bytes v = 3;
}

// BoolResponse message contains a single field of type bool.
message BoolResponse {
bool value = 1;
}

// The empty message
message Empty {}

0 comments on commit dbd282b

Please # to comment.