Skip to content

Commit f95d4b6

Browse files
committed
chore: changed field name in the node events
1 parent 3a1f471 commit f95d4b6

File tree

4 files changed

+56
-55
lines changed

4 files changed

+56
-55
lines changed

proto/sentinel/node/v3/events.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ message EventCreate {
1212
string node_address = 1;
1313
string gigabyte_prices = 2;
1414
string hourly_prices = 3;
15-
string remote_url = 4;
15+
string remote_url = 4 [(gogoproto.customname) = "RemoteURL"];
1616
}
1717

1818
message EventPay {
@@ -33,7 +33,7 @@ message EventUpdateDetails {
3333
string node_address = 1;
3434
string gigabyte_prices = 2;
3535
string hourly_prices = 3;
36-
string remote_url = 4;
36+
string remote_url = 4 [(gogoproto.customname) = "RemoteURL"];
3737
}
3838

3939
message EventUpdateStatus {

proto/sentinel/node/v3/session.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ message Session {
2323
(gogoproto.customtype) = "cosmossdk.io/math.Int",
2424
(gogoproto.nullable) = false
2525
];
26-
int64 max_gigabytes = 7 ;
26+
int64 max_gigabytes = 7;
2727
google.protobuf.Duration duration = 8 [
2828
(gogoproto.nullable) = false,
2929
(gogoproto.stdduration) = true

x/node/keeper/msg_handler.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func (k *Keeper) HandleMsgRegisterNode(ctx sdk.Context, msg *v3.MsgRegisterNodeR
5454
NodeAddress: node.Address,
5555
GigabytePrices: node.GigabytePrices.String(),
5656
HourlyPrices: node.HourlyPrices.String(),
57-
RemoteUrl: node.RemoteURL,
57+
RemoteURL: node.RemoteURL,
5858
},
5959
)
6060

@@ -99,7 +99,7 @@ func (k *Keeper) HandleMsgUpdateNodeDetails(ctx sdk.Context, msg *v3.MsgUpdateNo
9999
NodeAddress: node.Address,
100100
GigabytePrices: node.GigabytePrices.String(),
101101
HourlyPrices: node.HourlyPrices.String(),
102-
RemoteUrl: node.RemoteURL,
102+
RemoteURL: node.RemoteURL,
103103
},
104104
)
105105

@@ -296,7 +296,7 @@ func (k *Keeper) HandleMsgUpdateParams(ctx sdk.Context, msg *v3.MsgUpdateParamsR
296296
NodeAddress: item.Address,
297297
GigabytePrices: item.GigabytePrices.String(),
298298
HourlyPrices: item.HourlyPrices.String(),
299-
RemoteUrl: item.RemoteURL,
299+
RemoteURL: item.RemoteURL,
300300
},
301301
)
302302

x/node/types/v3/events.pb.go

Lines changed: 50 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)