From 9d6f6761a043ded1251cbf708cbb46a641654607 Mon Sep 17 00:00:00 2001 From: abhi3700 Date: Tue, 25 Jul 2023 16:16:03 +0530 Subject: [PATCH] ocw pallet mock + runtime related code added --- pallets/ocw/src/mock.rs | 1 + runtime/src/lib.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/pallets/ocw/src/mock.rs b/pallets/ocw/src/mock.rs index 739970f..5cadb7e 100644 --- a/pallets/ocw/src/mock.rs +++ b/pallets/ocw/src/mock.rs @@ -92,6 +92,7 @@ where impl pallet_ocw::Config for Test { type RuntimeEvent = RuntimeEvent; type AuthorityId = pallet_ocw::crypto::TestAuthId; + type MaxPrices = ConstU32<64>; } fn test_pub() -> sp_core::sr25519::Public { diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 2fd72a9..1882886 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -394,6 +394,7 @@ impl pallet_eosio_system::Config for Runtime { impl pallet_ocw::Config for Runtime { type RuntimeEvent = RuntimeEvent; type AuthorityId = pallet_ocw::crypto::TestAuthId; + type MaxPrices = ConstU32<64>; } use codec::Encode;