Skip to content

Commit

Permalink
Fix undefined method `raise_error' for an instance of Eth::Tx::Eip155…
Browse files Browse the repository at this point in the history
…9 (NoMethodError) (#282)

* Update eip2930.rb, fix undefined method `raise_error' for an instance of Eth::Tx::Eip1559 (NoMethodError)

* Update eip1559.rb
  • Loading branch information
RogerPodacter authored Jul 1, 2024
1 parent 89bffbc commit 4182fa7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/eth/tx/eip1559.rb
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def decode(hex)
# allows us to force-setting a signature if the transaction is signed already
_set_signature(recovery_id, r, s)
else
raise_error DecoderError, "Cannot decode EIP-1559 payload!"
raise DecoderError, "Cannot decode EIP-1559 payload!"
end

# last but not least, set the type.
Expand Down
2 changes: 1 addition & 1 deletion lib/eth/tx/eip2930.rb
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def decode(hex)
# allows us to force-setting a signature if the transaction is signed already
_set_signature(recovery_id, r, s)
else
raise_error DecoderError, "Cannot decode EIP-2930 payload!"
raise DecoderError, "Cannot decode EIP-2930 payload!"
end

# last but not least, set the type.
Expand Down

0 comments on commit 4182fa7

Please sign in to comment.