mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
Update gen_genesis_account.go
This commit is contained in:
parent
780eba4a11
commit
d55d9fa815
1 changed files with 2 additions and 2 deletions
|
|
@ -14,7 +14,7 @@ import (
|
||||||
|
|
||||||
var _ = (*genesisAccountMarshaling)(nil)
|
var _ = (*genesisAccountMarshaling)(nil)
|
||||||
|
|
||||||
//MarshalJSON returns the marshalled receiver.
|
// MarshalJSON returns the marshalled receiver.
|
||||||
func (g GenesisAccount) MarshalJSON() ([]byte, error) {
|
func (g GenesisAccount) MarshalJSON() ([]byte, error) {
|
||||||
type GenesisAccount struct {
|
type GenesisAccount struct {
|
||||||
Code hexutil.Bytes `json:"code,omitempty"`
|
Code hexutil.Bytes `json:"code,omitempty"`
|
||||||
|
|
@ -37,7 +37,7 @@ func (g GenesisAccount) MarshalJSON() ([]byte, error) {
|
||||||
return json.Marshal(&enc)
|
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 {
|
func (g *GenesisAccount) UnmarshalJSON(input []byte) error {
|
||||||
type GenesisAccount struct {
|
type GenesisAccount struct {
|
||||||
Code *hexutil.Bytes `json:"code,omitempty"`
|
Code *hexutil.Bytes `json:"code,omitempty"`
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue