q9f / eth.rb

a straightforward library to build, sign, and broadcast ethereum transactions anywhere you can run ruby.
https://q9f.github.io/eth.rb
Apache License 2.0
204 stars 88 forks source link

Unsupported method: eth_coinbase on matic #167

Closed samkahchiin closed 1 year ago

samkahchiin commented 1 year ago

Getting this error while I am trying to follow the tutorial

Command

Eth::Contract.from_file(file: 'contracts/dummy.sol')
client = Eth::Client.create('http://localhost:8545')
address = cli.deploy_and_wait(contract)

Error

gems/eth-0.5.7/lib/eth/client.rb:471:in `send_command': Unsupported method: eth_coinbase on matic (IOError)
q9f commented 1 year ago

you will have to provide a sender key, so that it does not require the client's coinbase.

address = cli.deploy_and_wait(contract, sender_key)
q9f commented 1 year ago

I added a more descriptive error in #193