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
196 stars 85 forks source link

Upgrade from 0.4.X to 0.5.X Eth.configure issue #255

Closed sbounmy closed 8 months ago

sbounmy commented 8 months ago

Hello,

I am trying to get cryptocoin_payable to work with 0.5.11

However I have

      Eth.configure do |config|
        config.chain_id = CryptocoinPayable.configuration.testnet ? 4 : 1
      end

configure is no longer there since 0.5.0

What is the upgrade process ?

I couldnt find much info in the release notes 0.5.0

I also inspected Eth::Chain without much luck

sbounmy commented 8 months ago

Okay seems like chain_id is passed as payload in each call and not global anymore

https://github.com/q9f/eth.rb/wiki/Transactions

q9f commented 8 months ago

Take a look at https://github.com/Sailias/cryptocoin_payable/pull/31

q9f commented 8 months ago

Happy to bring back the config element if this is desired. It was not very high up on my priority list.