diff --git a/lib/eth/client/ws.rb b/lib/eth/client/ws.rb index da8ae1ad..b5b493f2 100644 --- a/lib/eth/client/ws.rb +++ b/lib/eth/client/ws.rb @@ -51,7 +51,7 @@ def initialize(host) # # @param payload [Hash] the RPC request parameters. # @return [Integer] Number of bytes sent by this method. - def send(payload) + def send_request(payload) @ws.send(payload.to_json) end diff --git a/spec/eth/client_spec.rb b/spec/eth/client_spec.rb index 0f91fd00..c940ed63 100644 --- a/spec/eth/client_spec.rb +++ b/spec/eth/client_spec.rb @@ -470,7 +470,7 @@ end sleep 0.001 - geth_dev_ws.send(payload) + geth_dev_ws.send_request(payload) sleep 0.001 expect(received_data["id"]).to eq(payload[:id])