aboutsummaryrefslogtreecommitdiffstats
path: root/mobile/params.go
diff options
context:
space:
mode:
Diffstat (limited to 'mobile/params.go')
-rw-r--r--mobile/params.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/mobile/params.go b/mobile/params.go
index 87747c7b0..6ca0c1b3a 100644
--- a/mobile/params.go
+++ b/mobile/params.go
@@ -19,6 +19,8 @@
package geth
import (
+ "encoding/json"
+
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/p2p/discv5"
"github.com/ethereum/go-ethereum/params"
@@ -60,7 +62,11 @@ func TestnetChainConfig() *ChainConfig {
// TestnetGenesis returns the JSON spec to use for the Ethereum test network.
func TestnetGenesis() string {
- return core.DefaultTestnetGenesisBlock()
+ enc, err := json.Marshal(core.DefaultTestnetGenesisBlock())
+ if err != nil {
+ panic(err)
+ }
+ return string(enc)
}
// ChainConfig is the core config which determines the blockchain settings.