From 4182fa7993a9a6c6648e065dcf6748fb8d738895 Mon Sep 17 00:00:00 2001 From: Tom Lehman Date: Mon, 1 Jul 2024 02:24:37 -0400 Subject: [PATCH] Fix undefined method `raise_error' for an instance of Eth::Tx::Eip1559 (NoMethodError) (#282) * Update eip2930.rb, fix undefined method `raise_error' for an instance of Eth::Tx::Eip1559 (NoMethodError) * Update eip1559.rb --- lib/eth/tx/eip1559.rb | 2 +- lib/eth/tx/eip2930.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/eth/tx/eip1559.rb b/lib/eth/tx/eip1559.rb index a1ea1c19..f0fe3050 100644 --- a/lib/eth/tx/eip1559.rb +++ b/lib/eth/tx/eip1559.rb @@ -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. diff --git a/lib/eth/tx/eip2930.rb b/lib/eth/tx/eip2930.rb index 60e857ab..db256101 100644 --- a/lib/eth/tx/eip2930.rb +++ b/lib/eth/tx/eip2930.rb @@ -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.