[contracts] Add debug buffer limit + enforcement (#12845)

* Add debug buffer limit + enforcement

Add debug buffer limit + enforcement

* use BoundedVec for the debug buffer

* revert schedule (debug buf len limit not needed anymore)

* return DispatchError

* addressed review comments
This commit is contained in:
Sasha Gryaznov authored and GitHub committed 2022-12-13 15:54:50 +00:00
1 parent d4633c672f
commit 962580c82e
6 files changed
+86 -30

No files matched your search

+1
View File
@@ -1216,6 +1216,7 @@ impl pallet_contracts::Config for Runtime {
type MaxCodeLen = ConstU32<{ 128 * 1024 }>;
type MaxStorageKeyLen = ConstU32<128>;
type UnsafeUnstableInterface = ConstBool<false>;
type MaxDebugBufferLen = ConstU32<{ 2 * 1024 * 1024 }>;
}
impl pallet_sudo::Config for Runtime {