Update gen_genesis_account.go

This commit is contained in:
kiel barry 2018-05-07 19:05:41 -07:00 committed by GitHub
parent 780eba4a11
commit d55d9fa815
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,7 @@ import (
var _ = (*genesisAccountMarshaling)(nil)
//MarshalJSON returns the marshalled receiver.
// MarshalJSON returns the marshalled receiver.
func (g GenesisAccount) MarshalJSON() ([]byte, error) {
type GenesisAccount struct {
Code hexutil.Bytes `json:"code,omitempty"`
@ -37,7 +37,7 @@ func (g GenesisAccount) MarshalJSON() ([]byte, error) {
return json.Marshal(&enc)
}
//UnmarshalJSON parses JSON-encoded input and assigns resulting values to the receiver.
// UnmarshalJSON parses JSON-encoded input and assigns resulting values to the receiver.
func (g *GenesisAccount) UnmarshalJSON(input []byte) error {
type GenesisAccount struct {
Code *hexutil.Bytes `json:"code,omitempty"`