File tree 5 files changed +5
-5
lines changed
5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ var Currency = extend(function() {
22
22
this . _update ( ) ;
23
23
} , UInt160 ) ;
24
24
25
- Currency . prototype = extend ( { } , UInt160 . prototype ) ;
25
+ Currency . prototype = Object . create ( extend ( { } , UInt160 . prototype ) ) ;
26
26
Currency . prototype . constructor = Currency ;
27
27
28
28
Currency . HEX_CURRENCY_BAD = '0000000000000000000000005852500000000000' ;
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const Seed = extend(function() {
19
19
} , UInt ) ;
20
20
21
21
Seed . width = 16 ;
22
- Seed . prototype = extend ( { } , UInt . prototype ) ;
22
+ Seed . prototype = Object . create ( extend ( { } , UInt . prototype ) ) ;
23
23
Seed . prototype . constructor = Seed ;
24
24
25
25
// value = NaN on error.
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ var UInt128 = extend(function() {
13
13
} , UInt ) ;
14
14
15
15
UInt128 . width = 16 ;
16
- UInt128 . prototype = extend ( { } , UInt . prototype ) ;
16
+ UInt128 . prototype = Object . create ( extend ( { } , UInt . prototype ) ) ;
17
17
UInt128 . prototype . constructor = UInt128 ;
18
18
19
19
var HEX_ZERO = UInt128 . HEX_ZERO = '00000000000000000000000000000000' ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ var UInt160 = extend(function() {
17
17
} , UInt ) ;
18
18
19
19
UInt160 . width = 20 ;
20
- UInt160 . prototype = extend ( { } , UInt . prototype ) ;
20
+ UInt160 . prototype = Object . create ( extend ( { } , UInt . prototype ) ) ;
21
21
UInt160 . prototype . constructor = UInt160 ;
22
22
23
23
var HEX_ZERO = UInt160 . HEX_ZERO = '0000000000000000000000000000000000000000' ;
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ var UInt256 = extend(function() {
13
13
} , UInt ) ;
14
14
15
15
UInt256 . width = 32 ;
16
- UInt256 . prototype = extend ( { } , UInt . prototype ) ;
16
+ UInt256 . prototype = Object . create ( extend ( { } , UInt . prototype ) ) ;
17
17
UInt256 . prototype . constructor = UInt256 ;
18
18
19
19
var HEX_ZERO = UInt256 . HEX_ZERO = '00000000000000000000000000000000' +
You can’t perform that action at this time.
0 commit comments