Skip to content
This repository was archived by the owner on Oct 30, 2024. It is now read-only.

Commit d483e5e

Browse files
committed
Update uuid to 3.x
1 parent 8801a8b commit d483e5e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ var Buffer = require('safe-buffer').Buffer
22
var ethUtil = require('ethereumjs-util')
33
var crypto = require('crypto')
44
var scryptsy = require('scrypt.js')
5-
var uuid = require('uuid')
5+
var uuidv4 = require('uuid/v4')
66
var bs58check = require('bs58check')
77

88
function assert (val, msg) {
@@ -145,7 +145,7 @@ Wallet.prototype.toV3 = function (password, opts) {
145145

146146
return {
147147
version: 3,
148-
id: uuid.v4({ random: opts.uuid || crypto.randomBytes(16) }),
148+
id: uuidv4({ random: opts.uuid || crypto.randomBytes(16) }),
149149
address: this.getAddress().toString('hex'),
150150
crypto: {
151151
ciphertext: ciphertext.toString('hex'),

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"safe-buffer": "^5.1.1",
3434
"scrypt.js": "^0.2.0",
3535
"utf8": "^3.0.0",
36-
"uuid": "^2.0.1"
36+
"uuid": "^3.2.1"
3737
},
3838
"devDependencies": {
3939
"coveralls": "^3.0.0",

0 commit comments

Comments
 (0)