web3.swift icon indicating copy to clipboard operation
web3.swift copied to clipboard

support multicall for Goerli TestNetwork ?

Open Tomas-Shao opened this issue 2 years ago • 0 comments

Hi , i don't find the multicall contract address for goerli,

  1. so we don't support it, right ?
  2. 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
            }
        }

Tomas-Shao avatar Oct 10 '22 14:10 Tomas-Shao