# frozen_string_literal: true module Voucher class Config ABI_FILE_NAME = "#{Dir.pwd}/lib/voucher/config/json/election.json" attr_accessor :ethereum_url, :election_abi def initialize @ethereum_url = ENV['ETHEREUM_URL'] || 'http://172.31.80.135:8545' @election_abi = File.read(ABI_FILE_NAME) end end end