Rename etherScanAPIURL

pull/2/head
Michael Scoff 7 years ago
parent c33fe84327
commit 45937c59b4
  1. 2
      Trust/EtherClient/Etherscan/FetchTransactionsRequest.swift
  2. 2
      Trust/Settings/Types/Config.swift

@ -18,7 +18,7 @@ struct FetchTransactionsRequest: APIKit.Request {
var baseURL: URL { var baseURL: URL {
let config = Config() let config = Config()
return config.etherScanURL return config.etherScanAPIURL
} }
var method: HTTPMethod { var method: HTTPMethod {

@ -45,7 +45,7 @@ struct Config {
return URL(string: urlString)! return URL(string: urlString)!
} }
var etherScanURL: URL { var etherScanAPIURL: URL {
let urlString: String = { let urlString: String = {
switch server { switch server {
case .main: return "https://api.etherscan.io/api" case .main: return "https://api.etherscan.io/api"

Loading…
Cancel
Save