From 419c60ea0a46d2c11ff9a78cf0dd8c5b4b8a7082 Mon Sep 17 00:00:00 2001 From: benbierens Date: Fri, 9 Jun 2023 08:42:09 +0200 Subject: [PATCH] Removes rebase artifact --- codex/codex.nim | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/codex/codex.nim b/codex/codex.nim index cad4be74..dd329eaa 100644 --- a/codex/codex.nim +++ b/codex/codex.nim @@ -140,21 +140,6 @@ proc stop*(s: CodexServer) {.async.} = s.runHandle.complete() -proc new(_: type ContractInteractions, config: CodexConf): ?ContractInteractions = - if not config.persistence: - if config.ethAccount.isSome: - warn "Ethereum account was set, but persistence is not enabled" - return - - without account =? config.ethAccount: - error "Persistence enabled, but no Ethereum account was set" - quit QuitFailure - - if deployment =? config.ethDeployment: - ContractInteractions.new(config.ethProvider, account, deployment) - else: - ContractInteractions.new(config.ethProvider, account) - proc createDataStore(config: CodexConf): Datastore = case config.repoKind of repoFS: