MCPcopy Create free account
hub / github.com/circlefin/arc-node / findData

Function findData

tests/localdev/subcall.test.ts:349–350  ·  view source on GitHub ↗
(e?: ChainedError)

Source from the content-addressed store, hash-verified

347 .call({ account: sender.account.address, to: memoAddress, data: memoData })
348 .catch((e: unknown) => e as ChainedError)
349 const findData = (e?: ChainedError): string | undefined =>
350 e?.data?.startsWith('0x') ? e.data : e?.cause ? findData(e.cause) : undefined
351 const rawRevert = findData(err as ChainedError)
352 expect(rawRevert).to.equal(expectedError, 'revert data should be MemoFailed(ErrorMessage)')
353 })

Callers 1

subcall.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected