@@ -191,62 +191,43 @@ pub fn execute(
191
191
ExecuteMsg :: ConnectionOpenInit ( MsgConnectionOpenInit {
192
192
client_id,
193
193
counterparty_client_id,
194
- relayer,
195
- } ) => {
196
- let relayer = deps. api . addr_validate ( & relayer) ?;
197
- connection_open_init ( deps. branch ( ) , client_id, counterparty_client_id, relayer)
198
- }
194
+ } ) => connection_open_init ( deps. branch ( ) , client_id, counterparty_client_id) ,
199
195
ExecuteMsg :: ConnectionOpenTry ( MsgConnectionOpenTry {
200
196
counterparty_client_id,
201
197
counterparty_connection_id,
202
198
client_id,
203
199
proof_init,
204
200
proof_height,
205
- relayer,
206
- } ) => {
207
- let relayer = deps. api . addr_validate ( & relayer) ?;
208
- connection_open_try (
209
- deps. branch ( ) ,
210
- counterparty_client_id,
211
- counterparty_connection_id,
212
- client_id,
213
- proof_init. to_vec ( ) ,
214
- proof_height,
215
- relayer,
216
- )
217
- }
201
+ } ) => connection_open_try (
202
+ deps. branch ( ) ,
203
+ counterparty_client_id,
204
+ counterparty_connection_id,
205
+ client_id,
206
+ proof_init. to_vec ( ) ,
207
+ proof_height,
208
+ ) ,
218
209
ExecuteMsg :: ConnectionOpenAck ( MsgConnectionOpenAck {
219
210
connection_id,
220
211
counterparty_connection_id,
221
212
proof_try,
222
213
proof_height,
223
- relayer,
224
- } ) => {
225
- let relayer = deps. api . addr_validate ( & relayer) ?;
226
- connection_open_ack (
227
- deps. branch ( ) ,
228
- connection_id,
229
- counterparty_connection_id,
230
- proof_try. to_vec ( ) ,
231
- proof_height,
232
- relayer,
233
- )
234
- }
214
+ } ) => connection_open_ack (
215
+ deps. branch ( ) ,
216
+ connection_id,
217
+ counterparty_connection_id,
218
+ proof_try. to_vec ( ) ,
219
+ proof_height,
220
+ ) ,
235
221
ExecuteMsg :: ConnectionOpenConfirm ( MsgConnectionOpenConfirm {
236
222
connection_id,
237
223
proof_ack,
238
224
proof_height,
239
- relayer,
240
- } ) => {
241
- let relayer = deps. api . addr_validate ( & relayer) ?;
242
- connection_open_confirm (
243
- deps. branch ( ) ,
244
- connection_id,
245
- proof_ack. to_vec ( ) ,
246
- proof_height,
247
- relayer,
248
- )
249
- }
225
+ } ) => connection_open_confirm (
226
+ deps. branch ( ) ,
227
+ connection_id,
228
+ proof_ack. to_vec ( ) ,
229
+ proof_height,
230
+ ) ,
250
231
ExecuteMsg :: ChannelOpenInit ( MsgChannelOpenInit {
251
232
port_id,
252
233
counterparty_port_id,
@@ -916,7 +897,6 @@ fn connection_open_init(
916
897
mut deps : DepsMut ,
917
898
client_id : ClientId ,
918
899
counterparty_client_id : ClientId ,
919
- _relayer : Addr ,
920
900
) -> ContractResult {
921
901
let connection_id = next_connection_id ( deps. branch ( ) ) ?;
922
902
let connection = Connection {
@@ -945,7 +925,6 @@ fn connection_open_try(
945
925
client_id : ClientId ,
946
926
proof_init : Vec < u8 > ,
947
927
proof_height : u64 ,
948
- _relayer : Addr ,
949
928
) -> ContractResult {
950
929
let connection_id = next_connection_id ( deps. branch ( ) ) ?;
951
930
let connection = Connection {
@@ -1001,7 +980,6 @@ fn connection_open_ack(
1001
980
counterparty_connection_id : ConnectionId ,
1002
981
proof_try : Vec < u8 > ,
1003
982
proof_height : u64 ,
1004
- _relayer : Addr ,
1005
983
) -> ContractResult {
1006
984
let mut connection = deps. storage . read :: < Connections > ( & connection_id) ?;
1007
985
if connection. state != ConnectionState :: Init {
@@ -1059,7 +1037,6 @@ fn connection_open_confirm(
1059
1037
connection_id : ConnectionId ,
1060
1038
proof_ack : Vec < u8 > ,
1061
1039
proof_height : u64 ,
1062
- _relayer : Addr ,
1063
1040
) -> ContractResult {
1064
1041
let mut connection = deps. storage . read :: < Connections > ( & connection_id) ?;
1065
1042
if connection. state != ConnectionState :: TryOpen {
0 commit comments