-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
read PR on gas before as this follows up
- Loading branch information
Showing
9 changed files
with
88 additions
and
98 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
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 |
---|---|---|
@@ -1,49 +1,23 @@ | ||
from ethereum_types.bytes import BytesStruct | ||
|
||
struct StackUnderflowError { | ||
value: BytesStruct*, | ||
} | ||
|
||
struct StackOverflowError { | ||
value: BytesStruct*, | ||
} | ||
|
||
struct OutOfGasError { | ||
value: BytesStruct*, | ||
} | ||
|
||
struct InvalidOpcodeError { | ||
value: BytesStruct*, | ||
} | ||
|
||
struct InvalidJumpDestError { | ||
value: BytesStruct*, | ||
} | ||
|
||
struct StackDepthLimitError { | ||
value: BytesStruct*, | ||
} | ||
|
||
struct WriteInStaticContextError { | ||
value: BytesStruct*, | ||
} | ||
|
||
struct OutOfBoundsReadError { | ||
value: BytesStruct*, | ||
} | ||
|
||
struct InvalidParameterError { | ||
value: BytesStruct*, | ||
} | ||
|
||
struct InvalidContractPrefixError { | ||
value: BytesStruct*, | ||
} | ||
|
||
struct AddressCollisionError { | ||
value: BytesStruct*, | ||
} | ||
|
||
struct KZGProofError { | ||
value: BytesStruct*, | ||
struct ExceptionalHalt { | ||
value: felt, | ||
} | ||
|
||
const StackUnderflowError = 'StackUnderflowError'; | ||
const StackOverflowError = 'StackOverflowError'; | ||
const OutOfGasError = 'OutOfGasError'; | ||
const InvalidOpcode = 'InvalidOpcode'; | ||
const InvalidJumpDestError = 'InvalidJumpDestError'; | ||
const StackDepthLimitError = 'StackDepthLimitError'; | ||
const WriteInStaticContext = 'WriteInStaticContext'; | ||
const OutOfBoundsRead = 'OutOfBoundsRead'; | ||
const InvalidParameter = 'InvalidParameter'; | ||
const InvalidContractPrefix = 'InvalidContractPrefix'; | ||
const AddressCollision = 'AddressCollision'; | ||
const KZGProofError = 'KZGProofError'; | ||
|
||
func InvalidOpcodeError(param: felt) -> ExceptionalHalt { | ||
let param = param * 2 ** 30; | ||
let error_string = InvalidOpcode + param; | ||
let res = ExceptionalHalt(error_string); | ||
return res; | ||
} |
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
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
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