File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed
Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ export async function getRevelation(
6262) {
6363 const deployment = EntropyDeployments [ chain ] ;
6464 const url = new URL (
65- `/v1/chains/${ chain } /revelations/${ sequenceNumber . toString ( ) } ?blockNumber =${ blockNumber . toString ( ) } ` ,
65+ `/v1/chains/${ chain } /revelations/${ sequenceNumber . toString ( ) } ?block_number =${ blockNumber . toString ( ) } ` ,
6666 deployment . network === "mainnet"
6767 ? "https://fortuna.dourolabs.app"
6868 : "https://fortuna-staging.dourolabs.app" ,
Original file line number Diff line number Diff line change @@ -30,11 +30,11 @@ params(RevelationPathParams, RevelationQueryParams)
3030) ]
3131pub async fn revelation (
3232 State ( state) : State < crate :: api:: ApiState > ,
33- Path ( RevelationPathParams {
34- chain_id ,
35- sequence ,
36- } ) : Path < RevelationPathParams > ,
37- Query ( RevelationQueryParams { encoding , block_number } ) : Query < RevelationQueryParams > ,
33+ Path ( RevelationPathParams { chain_id , sequence } ) : Path < RevelationPathParams > ,
34+ Query ( RevelationQueryParams {
35+ encoding ,
36+ block_number ,
37+ } ) : Query < RevelationQueryParams > ,
3838) -> Result < Json < GetRandomValueResponse > , RestError > {
3939 state
4040 . metrics
@@ -86,8 +86,11 @@ pub async fn revelation(
8686
8787 match maybe_request {
8888 Some ( r)
89- if current_block_number. saturating_sub ( state. reveal_delay_blocks ) >= r. block_number =>
90- { Ok ( ( ) ) }
89+ if current_block_number. saturating_sub ( state. reveal_delay_blocks )
90+ >= r. block_number =>
91+ {
92+ Ok ( ( ) )
93+ }
9194 Some ( _) => Err ( RestError :: PendingConfirmation ) ,
9295 None => Err ( RestError :: NoPendingRequest ) ,
9396 } ?;
You can’t perform that action at this time.
0 commit comments