Fix ganache test endpoint for ipv6 machines (#3563)

## Issue Addressed

#3562

## Proposed Changes

Change the fork endpoint from `localhost` to `127.0.0.1` to match the ganache default listening host.
This way it doesn't try (and fail) to connect to `::1` on IPV6 machines.

## Additional Info

First PR
This commit is contained in:
Alessandro Tagliapietra 2022-09-13 01:57:45 +00:00
parent 98815516a1
commit 88a7e5a2ca

View File

@ -166,7 +166,7 @@ impl GanacheInstance {
}
fn endpoint(port: u16) -> String {
format!("http://localhost:{}", port)
format!("http://127.0.0.1:{}", port)
}
impl Drop for GanacheInstance {