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

Fix undefined method `raise_error' for an instance of Eth::Tx::Eip1559 (NoMethodError) #282

Closed RogerPodacter closed 1 month ago

RogerPodacter commented 1 month ago

I think the line raise_error DecoderError, "Cannot decode EIP-2930 payload!" was intended to be raise DecoderError, "Cannot decode EIP-2930 payload!" but didn't make it due to an accidental copy-paste from rspec.

raise_error isn't defined anywhere in the project and so this line currently doesn't work. Switching to raise will make it work as expected.