Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

Commit

Permalink
Remove address parameter from getDecorator() methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ealymbaev committed Mar 9, 2021
1 parent 11d555b commit 5da2775
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Erc20Kit/Classes/Core/Kit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
4 changes: 2 additions & 2 deletions Example/EthereumKit/Core/Manager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion UniswapKit/Classes/Kit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ extension Kit {
return uniswapKit
}

public static func getDecorator(address: Address) -> IDecorator {
public static func getDecorator() -> IDecorator {
SwapTransactionDecorator(contractMethodFactories: SwapContractMethodFactories.shared)
}

Expand Down

0 comments on commit 5da2775

Please sign in to comment.