diff --git a/Erc20Kit/Classes/Core/Kit.swift b/Erc20Kit/Classes/Core/Kit.swift index 195d49d0..164b93af 100644 --- a/Erc20Kit/Classes/Core/Kit.swift +++ b/Erc20Kit/Classes/Core/Kit.swift @@ -186,7 +186,7 @@ extension Kit { "erc20_transaction_syncer_\(contractAddress.hex)" } - public static func getDecorator(address: Address) -> IDecorator { + public static func getDecorator() -> IDecorator { Eip20TransactionDecorator(contractMethodFactories: Eip20ContractMethodFactories.shared) } diff --git a/Example/EthereumKit/Core/Manager.swift b/Example/EthereumKit/Core/Manager.swift index ca2b5720..ea597e1b 100644 --- a/Example/EthereumKit/Core/Manager.swift +++ b/Example/EthereumKit/Core/Manager.swift @@ -76,8 +76,8 @@ class Manager { } self.evmKit = evmKit - evmKit.add(decorator: Erc20Kit.Kit.getDecorator(address: evmKit.address)) - evmKit.add(decorator: UniswapKit.Kit.getDecorator(address: evmKit.address)) + evmKit.add(decorator: Erc20Kit.Kit.getDecorator()) + evmKit.add(decorator: UniswapKit.Kit.getDecorator()) evmKit.start() diff --git a/UniswapKit/Classes/Kit.swift b/UniswapKit/Classes/Kit.swift index 5e7a825a..4e221ecc 100644 --- a/UniswapKit/Classes/Kit.swift +++ b/UniswapKit/Classes/Kit.swift @@ -105,7 +105,7 @@ extension Kit { return uniswapKit } - public static func getDecorator(address: Address) -> IDecorator { + public static func getDecorator() -> IDecorator { SwapTransactionDecorator(contractMethodFactories: SwapContractMethodFactories.shared) }