Update uuid to 3.x
This commit is contained in:
parent
8801a8be0b
commit
d483e5ee31
4
index.js
4
index.js
|
@ -2,7 +2,7 @@ var Buffer = require('safe-buffer').Buffer
|
|||
var ethUtil = require('ethereumjs-util')
|
||||
var crypto = require('crypto')
|
||||
var scryptsy = require('scrypt.js')
|
||||
var uuid = require('uuid')
|
||||
var uuidv4 = require('uuid/v4')
|
||||
var bs58check = require('bs58check')
|
||||
|
||||
function assert (val, msg) {
|
||||
|
@ -145,7 +145,7 @@ Wallet.prototype.toV3 = function (password, opts) {
|
|||
|
||||
return {
|
||||
version: 3,
|
||||
id: uuid.v4({ random: opts.uuid || crypto.randomBytes(16) }),
|
||||
id: uuidv4({ random: opts.uuid || crypto.randomBytes(16) }),
|
||||
address: this.getAddress().toString('hex'),
|
||||
crypto: {
|
||||
ciphertext: ciphertext.toString('hex'),
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
"safe-buffer": "^5.1.1",
|
||||
"scrypt.js": "^0.2.0",
|
||||
"utf8": "^3.0.0",
|
||||
"uuid": "^2.0.1"
|
||||
"uuid": "^3.2.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"coveralls": "^3.0.0",
|
||||
|
|
Loading…
Reference in New Issue