|
|
@ -24,6 +24,8 @@ function convertToString (v) { |
|
|
|
return ret |
|
|
|
return ret |
|
|
|
} else if (BN.isBN(v) || (v.constructor && v.constructor.name === 'BigNumber') || isBigInt(v)) { |
|
|
|
} else if (BN.isBN(v) || (v.constructor && v.constructor.name === 'BigNumber') || isBigInt(v)) { |
|
|
|
return v.toString(10) |
|
|
|
return v.toString(10) |
|
|
|
|
|
|
|
} else if (v._isBigNumber) { |
|
|
|
|
|
|
|
return toInt(v._hex) |
|
|
|
} else if (v._isBuffer) { |
|
|
|
} else if (v._isBuffer) { |
|
|
|
return bufferToHex(v) |
|
|
|
return bufferToHex(v) |
|
|
|
} else if (typeof v === 'object') { |
|
|
|
} else if (typeof v === 'object') { |
|
|
|