web3.swift
web3.swift copied to clipboard
support multicall for Goerli TestNetwork ?
Hi , i don't find the multicall contract address for goerli,
- so we don't support it, right ?
- then i cannot use multicall on Goerli Test Network right ?
do we have a work around solution for this ?
extension Multicall {
public enum Contract {
static let ropstenAddress = EthereumAddress("0x604D19Ba889A223693B0E78bC1269760B291b9Df")
static let rinkebyAddress = EthereumAddress("0xF20A5837Eb2D9F1F7cdf9D635f3Bc68C47B8B8fF")
static let mainnetAddress = EthereumAddress("0xF34D2Cb31175a51B23fb6e08cA06d7208FaD379F")
public static func registryAddress(for network: EthereumNetwork) -> EthereumAddress? {
switch network {
case .Ropsten:
return Self.ropstenAddress
case .Rinkeby:
return Self.rinkebyAddress
case .Mainnet:
return Self.mainnetAddress
default:
return nil
}
}