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.