(e?: ChainedError)
| 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 | }) |