From 9def11118fcec56cbfe01ce027ac0f45afb495bc Mon Sep 17 00:00:00 2001 From: Chris Beams Date: Mon, 3 Nov 2014 14:40:26 +0100 Subject: [PATCH] Refactor BitcoinModule to extend AbstractBitsquareModule --- src/main/java/io/bitsquare/btc/BitcoinModule.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/io/bitsquare/btc/BitcoinModule.java b/src/main/java/io/bitsquare/btc/BitcoinModule.java index 9997669378..f881c300e7 100644 --- a/src/main/java/io/bitsquare/btc/BitcoinModule.java +++ b/src/main/java/io/bitsquare/btc/BitcoinModule.java @@ -17,6 +17,8 @@ package io.bitsquare.btc; +import io.bitsquare.di.AbstractBitsquareModule; + import org.bitcoinj.core.NetworkParameters; import org.bitcoinj.params.MainNetParams; import org.bitcoinj.params.RegTestParams; @@ -26,9 +28,8 @@ import com.google.inject.AbstractModule; import java.util.Properties; -public class BitcoinModule extends AbstractModule { +public class BitcoinModule extends AbstractBitsquareModule { - private final Properties properties; private final BitcoinNetwork defaultNetwork; public BitcoinModule(Properties properties) { @@ -36,7 +37,7 @@ public class BitcoinModule extends AbstractModule { } public BitcoinModule(Properties properties, BitcoinNetwork defaultNetwork) { - this.properties = properties; + super(properties); this.defaultNetwork = defaultNetwork; } @@ -62,6 +63,5 @@ public class BitcoinModule extends AbstractModule { throw new IllegalArgumentException("Unknown bitcoin network name: " + networkName); } } - }