(data: any)
| 41 | } |
| 42 | |
| 43 | export const objectToString = (data: any) => { |
| 44 | return JSON.stringify( |
| 45 | data, |
| 46 | (name, value) => { |
| 47 | if (name === "Blob") { |
| 48 | return value.slice(0, 100) + "..." |
| 49 | } |
| 50 | switch (typeof value) { |
| 51 | case "bigint": |
| 52 | return value.toString() |
| 53 | default: |
| 54 | return value |
| 55 | } |
| 56 | }, |
| 57 | 2 |
| 58 | ) |
| 59 | } |
| 60 | |
| 61 | export const getModuleHash = ( |
| 62 | status: CanisterStatusResponse |
no outgoing calls
no test coverage detected