From 3c3ff639ef3764aaa83c99c9618d5d6012e178fc Mon Sep 17 00:00:00 2001 From: Tom Lehman Date: Fri, 28 Jun 2024 12:14:37 -0400 Subject: [PATCH 1/2] Update eip2930.rb, fix undefined method `raise_error' for an instance of Eth::Tx::Eip1559 (NoMethodError) --- lib/eth/tx/eip2930.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. From 7193ae1af42d99ff77e21b0e0f059c532a31eb0e Mon Sep 17 00:00:00 2001 From: Tom Lehman Date: Fri, 28 Jun 2024 12:26:48 -0400 Subject: [PATCH 2/2] Update eip1559.rb --- lib/eth/tx/eip1559.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.