Skip to content

Commit

Permalink
chore(wallet): clear extra space and rename address variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mj committed Oct 29, 2024
1 parent 2a15176 commit 14e5190
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,11 +312,11 @@ func CreateNode(numValidators int, chain genesis.ChainType, workingDir string,
}

addressInfo, err := walletInstance.NewEd25519AccountAddress(
"Reward address ", "")
"Reward address", "")
if err != nil {
return nil, "", err
}
rewardAddrs := addressInfo.Address
rewardAddress := addressInfo.Address

confPath := PactusConfigPath(workingDir)
genPath := PactusGenesisPath(workingDir)
Expand Down Expand Up @@ -364,7 +364,7 @@ func CreateNode(numValidators int, chain genesis.ChainType, workingDir string,
return nil, "", err
}

return validatorAddrs, rewardAddrs, nil
return validatorAddrs, rewardAddress, nil
}

// StartNode starts the node from the given working directory.
Expand Down

0 comments on commit 14e5190

Please sign in to comment.