MCPcopy Create free account
hub / github.com/ICBNetwork/web3-Wallet / addLogArgs

Function addLogArgs

ses.cjs:1401–1411  ·  view source on GitHub ↗
(error, logArgs)

Source from the content-addressed store, hash-verified

1399 * @param {LogArgs} logArgs
1400 */
1401 const addLogArgs= (error, logArgs)=> {
1402 const logArgsArray= noteLogArgsArrayMap.get(error);
1403 if( logArgsArray!== undefined) {
1404 if( logArgsArray.length>= argsPerErrorBudget) {
1405 logArgsArray.shift();
1406 }
1407 logArgsArray.push(logArgs);
1408 }else {
1409 noteLogArgsArrayMap.set(error, [logArgs]);
1410 }
1411 };
1412 freeze(addLogArgs);
1413
1414 /**

Callers 1

noteFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected