Skip to content

Commit

Permalink
Fix no-network warnings (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
MisterTicot authored and abuiles committed Aug 15, 2019
1 parent 2e7fae4 commit 64785eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/keypair.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export class Keypair {
);
if (Network.current() === null) {
throw new Error(
'No network selected. Use `Network.use`, `Network.usePublicNetwork` or `Network.useTestNetwork` helper methods to select network.'
'No network selected. Please pass a network argument, e.g. `Keypair.master(Networks.PUBLIC)`.'
);
}
networkPassphrase = Network.current().networkPassphrase();
Expand Down
2 changes: 1 addition & 1 deletion src/transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class Transaction {

if (Network.current() === null) {
throw new Error(
'No network selected. Use `Network.use`, `Network.usePublicNetwork` or `Network.useTestNetwork` helper methods to select network.'
'No network selected. Please pass a network argument, e.g. `new Transaction(envelope, Networks.PUBLIC)`.'
);
}

Expand Down

0 comments on commit 64785eb

Please sign in to comment.