diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d50dfa2..307b99f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,6 +10,6 @@ jobs: - uses: aviate-labs/setup-dfx@v0.3.2 with: dfx-version: 0.18.0 - pocket-ic-version: release-2024-04-24_23-01-base + pocket-ic-version: 4.0.0 - run: mv ic/testdata/networks.json $HOME/.config/dfx/networks.json - run: make test diff --git a/pocketic/server.go b/pocketic/server.go index ae1a434..c544c0b 100644 --- a/pocketic/server.go +++ b/pocketic/server.go @@ -57,7 +57,7 @@ func newServer(opts ...serverOption) (*server, error) { return nil, fmt.Errorf("failed to get pocket-ic version: %v", err) } version := strings.TrimPrefix(strings.TrimSpace(string(rawVersion)), "pocket-ic-server ") - if !strings.HasPrefix(version, "3.") { + if !strings.HasPrefix(version, "4.") { return nil, fmt.Errorf("unsupported pocket-ic version, must be v3.x: %s", version) }