mirror of
https://github.com/status-im/op-geth.git
synced 2025-01-14 00:34:42 +00:00
output BigNumbers objects in console as strings
This commit is contained in:
parent
1208ac83d5
commit
6ea28f93b9
@ -97,7 +97,15 @@ var isMemberFunction = function(object, member) {
|
||||
}
|
||||
|
||||
var isBigNumber = function (object) {
|
||||
return typeof BigNumber !== 'undefined' && object instanceof BigNumber;
|
||||
var result = typeof BigNumber !== 'undefined' && object instanceof BigNumber;
|
||||
|
||||
if (!result) {
|
||||
if(typeof(object) === "object") {
|
||||
result = object.constructor.toString().indexOf("function BigNumber(") == 0;
|
||||
}
|
||||
}
|
||||
|
||||
return result
|
||||
};
|
||||
|
||||
function prettyPrint(/* */) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user