41
# File 'lib/ethlite.rb', line 41 def rpc() @rpc || JsonRpc.new( ENV['INFURA_URI'] ); end
42 43 44 45 46 47 48
# File 'lib/ethlite.rb', line 42 def rpc=(value) @rpc = if value.is_a?( String ) JsonRpc.new( value ) ## auto-wrap in (built-in/simple) jsonrpc client/serverproxy else value end end