aboutsummaryrefslogtreecommitdiff
path: root/examples/counter
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2020-06-28 16:55:59 -0400
committerDeterminant <[email protected]>2020-06-28 16:55:59 -0400
commit90fae71b0ab27aacdc2f9454820d487a9b2a529a (patch)
tree8b19f7d114119644f4faf35ec46dd25ff00a7d31 /examples/counter
parentd235e2c6a5788ec4a6cff15a16f56b38a3876a0d (diff)
...
Diffstat (limited to 'examples/counter')
-rw-r--r--examples/counter/main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/counter/main.go b/examples/counter/main.go
index f28550b..48a0e6f 100644
--- a/examples/counter/main.go
+++ b/examples/counter/main.go
@@ -57,6 +57,7 @@ func main() {
b := `{"config":{"chainId":1,"homesteadBlock":0,"daoForkBlock":0,"daoForkSupport":true,"eip150Block":0,"eip150Hash":"0x2086799aeebeae135c246c65021c82b4e15a2c451340993aacfd2751886514f0","eip155Block":0,"eip158Block":0,"byzantiumBlock":0,"constantinopleBlock":0,"petersburgBlock":0},"nonce":"0x0","timestamp":"0x0","extraData":"0x00","gasLimit":"0x5f5e100","difficulty":"0x0","mixHash":"0x0000000000000000000000000000000000000000000000000000000000000000","coinbase":"0x0000000000000000000000000000000000000000","alloc":{"751a0b96e1042bee789452ecb20253fba40dbe85":{"balance":"0x16345785d8a0000"}},"number":"0x0","gasUsed":"0x0","parentHash":"0x0000000000000000000000000000000000000000000000000000000000000000"}`
k := "0xabd71b35d559563fea757f0f5edbde286fb8c043105b15abb7cd57189306d7d1"
err := json.Unmarshal([]byte(b), g)
+ checkError(err)
config.Genesis = g
hk, _ := crypto.HexToECDSA(k[2:])
genKey = coreth.NewKeyFromECDSA(hk)