parent
f0df0b9189
commit
9fb791ec19
@ -1,14 +1,8 @@ |
||||
import Config |
||||
|
||||
variant = |
||||
if is_nil(System.get_env("ETHEREUM_JSONRPC_VARIANT")) do |
||||
"parity" |
||||
else |
||||
System.get_env("ETHEREUM_JSONRPC_VARIANT") |
||||
|> String.split(".") |
||||
|> List.last() |
||||
|> String.downcase() |
||||
end |
||||
alias EthereumJSONRPC.Variant |
||||
|
||||
variant = Variant.get() |
||||
|
||||
Code.require_file("#{variant}.exs", "#{__DIR__}/../../../explorer/config/test") |
||||
Code.require_file("#{variant}.exs", "#{__DIR__}/../../../indexer/config/test") |
||||
|
@ -1,14 +1,8 @@ |
||||
import Config |
||||
|
||||
variant = |
||||
if is_nil(System.get_env("ETHEREUM_JSONRPC_VARIANT")) do |
||||
"parity" |
||||
else |
||||
System.get_env("ETHEREUM_JSONRPC_VARIANT") |
||||
|> String.split(".") |
||||
|> List.last() |
||||
|> String.downcase() |
||||
end |
||||
alias EthereumJSONRPC.Variant |
||||
|
||||
variant = Variant.get() |
||||
|
||||
Code.require_file("#{variant}.exs", "#{__DIR__}/../../../explorer/config/test") |
||||
Code.require_file("#{variant}.exs", "#{__DIR__}/../../../indexer/config/test") |
||||
|
Loading…
Reference in new issue