Rename generateWallet to generateAddress

This commit is contained in:
Chris Clark
2015-08-17 14:24:34 -07:00
parent 98f6bed8c9
commit d8e95a3c3b
7 changed files with 14 additions and 11 deletions

View File

@@ -28,7 +28,7 @@ function toRippledAmount(amount: Amount): string|Amount {
};
}
function generateWallet(options?: Object): Object {
function generateAddress(options?: Object): Object {
const {accountID, seed} = keypairs.generateWallet(options);
return {secret: seed, address: accountID};
}
@@ -92,7 +92,7 @@ function convertKeysFromSnakeCaseToCamelCase(obj: any): any {
return obj;
}
function promisify<T>(asyncFunction: AsyncFunction): Function {
function promisify(asyncFunction: AsyncFunction): Function {
return es6promisify(wrapCatch(asyncFunction));
}
@@ -101,7 +101,7 @@ module.exports = {
dropsToXrp,
xrpToDrops,
toRippledAmount,
generateWallet,
generateAddress,
composeAsync,
wrapCatch,
convertExceptions,