Skip to content

Commit

Permalink
Implement Cairo0 Class Hash
Browse files Browse the repository at this point in the history
  • Loading branch information
weiihann committed Sep 2, 2024
1 parent 692bd49 commit 576d121
Show file tree
Hide file tree
Showing 28 changed files with 80,991 additions and 3 deletions.
5 changes: 2 additions & 3 deletions clients/feeder/feeder.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"os"
"path/filepath"
"strings"
"testing"
"time"

"github.com/NethermindEth/juno/core/felt"
Expand Down Expand Up @@ -92,7 +91,7 @@ func NopBackoff(d time.Duration) time.Duration {
}

// NewTestClient returns a client and a function to close a test server.
func NewTestClient(t *testing.T, network *utils.Network) *Client {
func NewTestClient(t utils.BenchmarkTesting, network *utils.Network) *Client {
srv := newTestServer(t, network)
t.Cleanup(srv.Close)
ua := "Juno/v0.0.1-test Starknet Implementation"
Expand All @@ -117,7 +116,7 @@ func NewTestClient(t *testing.T, network *utils.Network) *Client {
return c
}

func newTestServer(t *testing.T, network *utils.Network) *httptest.Server {
func newTestServer(t utils.BenchmarkTesting, network *utils.Network) *httptest.Server {
return httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
queryMap, err := url.ParseQuery(r.URL.RawQuery)
if err != nil {
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading

0 comments on commit 576d121

Please sign in to comment.