forked from quilt/eth1.0-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create TYPE_NOT_SUPPORTED error (ethereum#1021)
- Loading branch information
Showing
15 changed files
with
188 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
""" | ||
Exceptions specific to this fork. | ||
""" | ||
|
||
from typing import Final | ||
|
||
from ethereum.exceptions import InvalidTransaction | ||
|
||
|
||
class TransactionTypeError(InvalidTransaction): | ||
""" | ||
Unknown [EIP-2718] transaction type byte. | ||
[EIP-2718]: https://eips.ethereum.org/EIPS/eip-2718 | ||
""" | ||
|
||
transaction_type: Final[int] | ||
""" | ||
The type byte of the transaction that caused the error. | ||
""" | ||
|
||
def __init__(self, transaction_type: int): | ||
super().__init__(f"unknown transaction type `{transaction_type}`") | ||
self.transaction_type = transaction_type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
""" | ||
Exceptions specific to this fork. | ||
""" | ||
|
||
from typing import Final | ||
|
||
from ethereum.exceptions import InvalidTransaction | ||
|
||
|
||
class TransactionTypeError(InvalidTransaction): | ||
""" | ||
Unknown [EIP-2718] transaction type byte. | ||
[EIP-2718]: https://eips.ethereum.org/EIPS/eip-2718 | ||
""" | ||
|
||
transaction_type: Final[int] | ||
""" | ||
The type byte of the transaction that caused the error. | ||
""" | ||
|
||
def __init__(self, transaction_type: int): | ||
super().__init__(f"unknown transaction type `{transaction_type}`") | ||
self.transaction_type = transaction_type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
""" | ||
Exceptions specific to this fork. | ||
""" | ||
|
||
from typing import Final | ||
|
||
from ethereum.exceptions import InvalidTransaction | ||
|
||
|
||
class TransactionTypeError(InvalidTransaction): | ||
""" | ||
Unknown [EIP-2718] transaction type byte. | ||
[EIP-2718]: https://eips.ethereum.org/EIPS/eip-2718 | ||
""" | ||
|
||
transaction_type: Final[int] | ||
""" | ||
The type byte of the transaction that caused the error. | ||
""" | ||
|
||
def __init__(self, transaction_type: int): | ||
super().__init__(f"unknown transaction type `{transaction_type}`") | ||
self.transaction_type = transaction_type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
""" | ||
Exceptions specific to this fork. | ||
""" | ||
|
||
from typing import Final | ||
|
||
from ethereum.exceptions import InvalidTransaction | ||
|
||
|
||
class TransactionTypeError(InvalidTransaction): | ||
""" | ||
Unknown [EIP-2718] transaction type byte. | ||
[EIP-2718]: https://eips.ethereum.org/EIPS/eip-2718 | ||
""" | ||
|
||
transaction_type: Final[int] | ||
""" | ||
The type byte of the transaction that caused the error. | ||
""" | ||
|
||
def __init__(self, transaction_type: int): | ||
super().__init__(f"unknown transaction type `{transaction_type}`") | ||
self.transaction_type = transaction_type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
""" | ||
Exceptions specific to this fork. | ||
""" | ||
|
||
from typing import Final | ||
|
||
from ethereum.exceptions import InvalidTransaction | ||
|
||
|
||
class TransactionTypeError(InvalidTransaction): | ||
""" | ||
Unknown [EIP-2718] transaction type byte. | ||
[EIP-2718]: https://eips.ethereum.org/EIPS/eip-2718 | ||
""" | ||
|
||
transaction_type: Final[int] | ||
""" | ||
The type byte of the transaction that caused the error. | ||
""" | ||
|
||
def __init__(self, transaction_type: int): | ||
super().__init__(f"unknown transaction type `{transaction_type}`") | ||
self.transaction_type = transaction_type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
""" | ||
Exceptions specific to this fork. | ||
""" | ||
|
||
from typing import Final | ||
|
||
from ethereum.exceptions import InvalidTransaction | ||
|
||
|
||
class TransactionTypeError(InvalidTransaction): | ||
""" | ||
Unknown [EIP-2718] transaction type byte. | ||
[EIP-2718]: https://eips.ethereum.org/EIPS/eip-2718 | ||
""" | ||
|
||
transaction_type: Final[int] | ||
""" | ||
The type byte of the transaction that caused the error. | ||
""" | ||
|
||
def __init__(self, transaction_type: int): | ||
super().__init__(f"unknown transaction type `{transaction_type}`") | ||
self.transaction_type = transaction_type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
""" | ||
Exceptions specific to this fork. | ||
""" | ||
|
||
from typing import Final | ||
|
||
from ethereum.exceptions import InvalidTransaction | ||
|
||
|
||
class TransactionTypeError(InvalidTransaction): | ||
""" | ||
Unknown [EIP-2718] transaction type byte. | ||
[EIP-2718]: https://eips.ethereum.org/EIPS/eip-2718 | ||
""" | ||
|
||
transaction_type: Final[int] | ||
""" | ||
The type byte of the transaction that caused the error. | ||
""" | ||
|
||
def __init__(self, transaction_type: int): | ||
super().__init__(f"unknown transaction type `{transaction_type}`") | ||
self.transaction_type = transaction_type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters