File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ use transactor::Transactor;
21
21
22
22
pub struct ChainState {
23
23
provider : Arc < Provider < RetryClient < Http > > > ,
24
- da_entrance : Arc < DAEntrance < Provider < RetryClient < Http > > > > ,
24
+ pub da_entrance : Arc < DAEntrance < Provider < RetryClient < Http > > > > ,
25
25
da_signers : Arc < DASigners < Provider < RetryClient < Http > > > > ,
26
26
transactor : Arc < Mutex < Transactor > > ,
27
27
signer_address : H160 ,
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ message BatchRetrieveReply {
58
58
59
59
message StatusReply {
60
60
uint64 status_code = 1 ;
61
+ string entrance_contract = 2 ;
61
62
}
62
63
63
64
message Empty {}
Original file line number Diff line number Diff line change @@ -251,7 +251,10 @@ impl Signer for SignerService {
251
251
& self ,
252
252
request : Request < Empty > ,
253
253
) -> Result < Response < signer:: StatusReply > , Status > {
254
- let status = signer:: StatusReply { status_code : 200 } ;
254
+ let status = signer:: StatusReply {
255
+ status_code : 200 ,
256
+ entrance_contract : hex:: encode ( self . chain_state . da_entrance . address ( ) ) ,
257
+ } ;
255
258
Ok ( Response :: new ( status) )
256
259
}
257
260
}
You can’t perform that action at this time.
0 commit comments