Hi,
My main purpose of using serializeError is to get cause. it works perfectly but I get a following error
Property 'cause' does not exist on type 'Json & ExactOptionalGuard'.
What would be the appropriate type of it? My code is below:
consterr=serializeError(e);// 'e' from smart contract errorconstcause=err?.data?.cause?.reason;// Property 'cause' does not exist on type 'Json & ExactOptionalGuard'
Hi,
My main purpose of using
serializeErroris to getcause. it works perfectly but I get a following errorProperty 'cause' does not exist on type 'Json & ExactOptionalGuard'.What would be the appropriate type of it? My code is below: