in src/utils/common.ts [141:156]
export function stringifyJSONForBigNumber(json: any, prefix = '__big_number__') {
let result: string = '';
try {
function replacer(key: string, value: any) {
if (isString(value) && value.startsWith(prefix)) {
return value.slice(prefix.length);
}
return value;
}
result = JSON.stringify(json, replacer);
} catch (e) {
console.error(e);
}
return result;
}