[contracts] Make debug buffer work like a FIFO pipe (#12953)

* make debug buffer work like a FIFO pipe

* remove unused Error type

* Remove panics

* Update frame/contracts/src/exec.rs

Co-authored-by: Sasha Gryaznov <hi@agryaznov.com>

Co-authored-by: Alexander Theißen <alex.theissen@me.com>
This commit is contained in:
Sasha GryaznovandAlexander Theißen authored and GitHub committed 2022-12-27 14:24:49 +01:00
1 parent 67a50ffa54
commit 2691f6de2e
4 files changed
+52 -43

No files matched your search

-3
View File
@@ -857,9 +857,6 @@ pub mod pallet {
CodeRejected,
/// An indetermistic code was used in a context where this is not permitted.
Indeterministic,
/// The debug buffer size used during contract execution exceeded the limit determined by
/// the `MaxDebugBufferLen` pallet config parameter.
DebugBufferExhausted,
}
/// A mapping from an original code hash to the original code, untouched by instrumentation.