MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / fail

Function fail

src/lib/adRewards.js:225–234  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

223 };
224
225 const fail = (error) => {
226 if (settled) return;
227 settled = true;
228 clearTimeout(timeoutId);
229 reject(
230 error instanceof Error
231 ? error
232 : new Error(error?.message || "Rewarded ad failed."),
233 );
234 };
235
236 ad.on("reward", () => {
237 earned = true;

Callers 1

waitForRewardedResultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected