diff --git a/ethereumj-core/src/main/java/org/ethereum/core/Wallet.java b/ethereumj-core/src/main/java/org/ethereum/core/Wallet.java index 6adb7181..c16c50fe 100644 --- a/ethereumj-core/src/main/java/org/ethereum/core/Wallet.java +++ b/ethereumj-core/src/main/java/org/ethereum/core/Wallet.java @@ -12,6 +12,7 @@ import org.spongycastle.util.encoders.Hex; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.ApplicationContext; +import org.springframework.context.annotation.DependsOn; import org.springframework.stereotype.Component; import org.w3c.dom.Attr; @@ -48,6 +49,7 @@ import javax.xml.transform.stream.StreamResult; * New accounts can be generated and added to the wallet and existing accounts can be queried. */ @Component +@DependsOn("worldManager") public class Wallet { private Logger logger = LoggerFactory.getLogger("wallet");