|
|
|
@ -35,9 +35,8 @@ const ( |
|
|
|
|
port = "8500" |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
// by default ens root is north internal
|
|
|
|
|
var ( |
|
|
|
|
toyNetEnsRoot = common.HexToAddress("0xd344889e0be3e9ef6c26b0f60ef66a32e83c1b69") |
|
|
|
|
ensRootAddress = common.HexToAddress("0x112234455c3a32fd11230c42e7bccd4a84e02010") |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
// separate bzz directories
|
|
|
|
@ -82,7 +81,7 @@ func NewConfig(path string, contract common.Address, prvKey *ecdsa.PrivateKey, n |
|
|
|
|
Swap: swap.DefaultSwapParams(contract, prvKey), |
|
|
|
|
PublicKey: pubkeyhex, |
|
|
|
|
BzzKey: keyhex, |
|
|
|
|
EnsRoot: toyNetEnsRoot, |
|
|
|
|
EnsRoot: ensRootAddress, |
|
|
|
|
NetworkId: networkId, |
|
|
|
|
} |
|
|
|
|
data, err = ioutil.ReadFile(confpath) |
|
|
|
@ -113,7 +112,7 @@ func NewConfig(path string, contract common.Address, prvKey *ecdsa.PrivateKey, n |
|
|
|
|
self.Swap.SetKey(prvKey) |
|
|
|
|
|
|
|
|
|
if (self.EnsRoot == common.Address{}) { |
|
|
|
|
self.EnsRoot = toyNetEnsRoot |
|
|
|
|
self.EnsRoot = ensRootAddress |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return |
|
|
|
|