Decouple contract from balances (#2081)

* decouple contract from balance

* update impls and builds

* set fees in contract module

* builds
This commit is contained in:
thiolliere
2019-03-28 13:46:30 +01:00
committed by Gav Wood
parent ff4523cbec
commit 29001cb469
13 changed files with 91 additions and 67 deletions
+5
View File
@@ -96,6 +96,7 @@ impl consensus::Trait for Test {
type InherentOfflineReport = ();
}
impl Trait for Test {
type Currency = Balances;
type Call = Call;
type Gas = u64;
type DetermineContractAddress = DummyContractAddressFor;
@@ -198,6 +199,10 @@ impl ExtBuilder {
);
t.extend(
GenesisConfig::<Test> {
transaction_base_fee: 0,
transaction_byte_fee: 0,
transfer_fee: self.transfer_fee,
creation_fee: self.creation_fee,
contract_fee: 21,
call_base_fee: 135,
create_base_fee: 175,