MCPcopy Create free account
hub / github.com/CashScript/cashscript / logConsoleLogStatement

Function logConsoleLogStatement

packages/cashscript/src/debugging.ts:236–243  ·  view source on GitHub ↗
(
  log: LogEntry,
  decodedLogData: Array<string | bigint | boolean>,
  contractName: string,
  inputIndex: number,
)

Source from the content-addressed store, hash-verified

234};
235
236const logConsoleLogStatement = (
237 log: LogEntry,
238 decodedLogData: Array<string | bigint | boolean>,
239 contractName: string,
240 inputIndex: number,
241): void => {
242 console.log(`[Input #${inputIndex}] ${contractName}.cash:${log.line} ${decodedLogData.join(' ')}`);
243};
244
245const decodeLogDataEntry = (
246 dataEntry: LogData,

Callers 1

debugSingleScenarioFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected