Skip to content

Commit

Permalink
refactor: verify contracts via blockscout worker
Browse files Browse the repository at this point in the history
  • Loading branch information
trungnt1811 committed Oct 30, 2023
1 parent c44e376 commit f1c01e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions infrastructure/blockscout/httpclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -1383,7 +1383,7 @@ func (client *HTTPClient) Verify(bodyParams interface{}) (interface{}, error) {
return nil, err
}

rawRespBody, err := client.requestPost(client.getUrl(HARD_HAT_POST_INTERFACE, ""), postBody)
rawRespBody, err := client.requestPost(client.getWorkerUrl(HARD_HAT_POST_INTERFACE, ""), postBody)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -1423,7 +1423,7 @@ func (client *HTTPClient) VerifyFlattened(bodyParams interface{}) (interface{},
return nil, err
}

rawRespBody, err := client.requestPost(client.getUrl(VERIFY_FLATTENED, ""), postBody)
rawRespBody, err := client.requestPost(client.getWorkerUrl(VERIFY_FLATTENED, ""), postBody)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -1526,7 +1526,7 @@ func (client *HTTPClient) Logs(bodyParams interface{}) (interface{}, error) {
return nil, err
}

rawRespBody, err := client.requestPost(client.getUrl(HARD_HAT_POST_INTERFACE, ""), postBody)
rawRespBody, err := client.requestPost(client.getWorkerUrl(HARD_HAT_POST_INTERFACE, ""), postBody)
if err != nil {
return nil, err
}
Expand Down
3 changes: 1 addition & 2 deletions infrastructure/httpapi/handlers/contract_verifiers.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,7 @@ func (handler *ContractVerifiers) VerifyFlattened(ctx *fasthttp.RequestCtx) {
httpapi.SuccessNotWrappedResult(ctx, resp)
}

//checkverifystatus

// checkverifystatus
func (handler *ContractVerifiers) ContractActions(ctx *fasthttp.RequestCtx) {
startTime := time.Now()
recordMethod := "CheckVerifyStatus"
Expand Down

0 comments on commit f1c01e7

Please sign in to comment.