File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ const fns = {
240
240
from10 : s => SilentMattBigInteger . parse ( s , 10 ) ,
241
241
from16 : s => SilentMattBigInteger . parse ( s , 16 ) ,
242
242
to10 : x => x . toString ( 10 ) ,
243
- to16 : x => x . toString ( 16 ) ,
243
+ to16 : x => x . toString ( 16 ) . toLowerCase ( ) ,
244
244
add : ( a , b ) => a . add ( b ) ,
245
245
sub : ( a , b ) => a . subtract ( b ) ,
246
246
mul : ( a , b ) => a . multiply ( b ) ,
@@ -420,7 +420,7 @@ for ( let i = 0; i < NFIXTURES; ++i ) {
420
420
results [ i ] [ key ] = results [ i ] [ key ] || { } ;
421
421
422
422
const result = fixture . outs [ key ] ;
423
- const str = result instanceof String ? result : fn . to16 ( result ) . toLowerCase ( ) ;
423
+ const str = result . constructor . prototype === String . prototype ? result : fn . to16 ( result ) . toLowerCase ( ) ;
424
424
results [ i ] [ key ] [ name ] = str ;
425
425
} ) ;
426
426
} ) ;
You can’t perform that action at this time.
0 commit comments