Skip to content

Commit 4145017

Browse files
committed
protocols: Rename 'prettifiedName' to 'displayName'
1 parent 35c4dc7 commit 4145017

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/commands/init.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ const processInitForm = async (
154154
{
155155
type: 'select',
156156
name: 'network',
157-
message: () => `${protocolInstance.prettifiedName()} network`,
157+
message: () => `${protocolInstance.displayName()} network`,
158158
choices: () =>
159159
Protocol.availableNetworks() // TODO: this should be a constant in the top of the file.
160160
.get(protocol) // Get networks related to the chosen protocol.

src/protocols/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ module.exports = class Protocol {
6969
.findKey(possibleNames => possibleNames.includes(name))
7070
}
7171

72-
prettifiedName() {
72+
displayName() {
7373
switch (this.name) {
7474
case 'ethereum':
7575
return 'Ethereum'

0 commit comments

Comments
 (0)