diff --git a/core/genesis_util.go b/core/genesis_util.go index 4fa5be449..45a075976 100644 --- a/core/genesis_util.go +++ b/core/genesis_util.go @@ -54,7 +54,7 @@ func StringToBigInt(s string, base int) *big.Int { func convertToGenesisItems(gc genesisConfig) []GenesisItem { gi := []GenesisItem{} for k, v := range gc { - gi = append(gi, GenesisItem{StringToBigInt(k, 16), StringToBigInt(v["wei"], 10)}) + gi = append(gi, GenesisItem{StringToBigInt(k, 16), StringToBigInt(v["nano"], 10)}) } sort.Slice(gi, func(i, j int) bool { return gi[i].Addr.Cmp(gi[j].Addr) == -1 diff --git a/internal/hmyapi/blockchain.go b/internal/hmyapi/blockchain.go index d4178dfd2..b1d410df7 100644 --- a/internal/hmyapi/blockchain.go +++ b/internal/hmyapi/blockchain.go @@ -68,7 +68,7 @@ func (s *PublicBlockChainAPI) GetStorageAt(ctx context.Context, address common.A return res[:], state.Error() } -// GetBalance returns the amount of wei for the given address in the state of the +// GetBalance returns the amount of Nano for the given address in the state of the // given block number. The rpc.LatestBlockNumber and rpc.PendingBlockNumber meta // block numbers are also allowed. func (s *PublicBlockChainAPI) GetBalance(ctx context.Context, address common.Address, blockNr rpc.BlockNumber) (*hexutil.Big, error) {