MCPcopy Create free account
hub / github.com/dfinity/orbit / stringify

Function stringify

apps/wallet/src/utils/helper.utils.ts:183–188  ·  view source on GitHub ↗
(obj: unknown)

Source from the content-addressed store, hash-verified

181};
182
183export const stringify = (obj: unknown): string => {
184 return JSON.stringify(
185 obj,
186 (_, value) => (typeof value === 'bigint' ? value.toString() : value), // return everything else unchanged
187 );
188};
189
190// This function is used to transform the IDL to only have update calls, all query and composite query calls are
191// converted to update calls. This is useful to be able to dynamically leverage verification of calls for security

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected