diff options
author | Determinant <[email protected]> | 2020-06-30 17:05:50 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2020-06-30 17:05:50 -0400 |
commit | 7feec02902d52a3abf722613eb9e218e015b723c (patch) | |
tree | 3ca683e866cdaba9c06480f825682677826557f3 /core/gen_genesis.go | |
parent | 3a872747058e9fd32810d0864e19a197529b7d79 (diff) |
make mc tx work
Diffstat (limited to 'core/gen_genesis.go')
-rw-r--r-- | core/gen_genesis.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/gen_genesis.go b/core/gen_genesis.go index 05883c0..97175f7 100644 --- a/core/gen_genesis.go +++ b/core/gen_genesis.go @@ -15,6 +15,7 @@ import ( var _ = (*genesisSpecMarshaling)(nil) +// MarshalJSON marshals as JSON. func (g Genesis) MarshalJSON() ([]byte, error) { type Genesis struct { Config *params.ChainConfig `json:"config"` @@ -51,6 +52,7 @@ func (g Genesis) MarshalJSON() ([]byte, error) { return json.Marshal(&enc) } +// UnmarshalJSON unmarshals from JSON. func (g *Genesis) UnmarshalJSON(input []byte) error { type Genesis struct { Config *params.ChainConfig `json:"config"` |