mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-06 12:37:23 +00:00
Decouple randomness-collective-flip (#3792)
* Abstract Randomness trait * bump version * fix doc test * simpify code a bit * Apply suggestions from code review Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com> Co-Authored-By: Kian Paimani <5588131+kianenigma@users.noreply.github.com> * fix tests
This commit is contained in:
committed by
Bastian Köcher
parent
21fae718c4
commit
34c7338211
@@ -159,6 +159,7 @@ parameter_types! {
|
||||
impl Trait for Test {
|
||||
type Currency = Balances;
|
||||
type Time = Timestamp;
|
||||
type Randomness = Randomness;
|
||||
type Call = Call;
|
||||
type DetermineContractAddress = DummyContractAddressFor;
|
||||
type Event = MetaEvent;
|
||||
@@ -187,6 +188,7 @@ type Balances = balances::Module<Test>;
|
||||
type Timestamp = timestamp::Module<Test>;
|
||||
type Contract = Module<Test>;
|
||||
type System = system::Module<Test>;
|
||||
type Randomness = randomness_collective_flip::Module<Test>;
|
||||
|
||||
pub struct DummyContractAddressFor;
|
||||
impl ContractAddressFor<H256, u64> for DummyContractAddressFor {
|
||||
|
||||
Reference in New Issue
Block a user