Web3.swift
Web3.swift copied to clipboard
Change Web3HttpProvider init to use URL
Change the String in the init to URL and thus it removes the possible error during unwrapping (the URL now has to be unwrapped by the user beforehand).
Also changed a test as it was taking in a String.
@koraykoska seems like this same CI failure is on every PR.
The reason I set it to a random URL if it fails to unwrap is that if it fails to unwrap all calls to this object (should) fail anyway. Ideally, people should probably use the init with the URL not the String.