diff --git a/avm/client/src/avmHelpers.ts b/avm/client/src/avmHelpers.ts index 87070f9a..a68b2649 100644 --- a/avm/client/src/avmHelpers.ts +++ b/avm/client/src/avmHelpers.ts @@ -154,14 +154,7 @@ export async function callAvm( data: Uint8Array, callResults: CallResultsArray, ): Promise { - try { - const avmArg = serializeAvmArgs(runParams, air, prevData, data, callResults); - const rawResult = await fn(avmArg); - return deserializeAvmResult(rawResult); - } catch (e) { - return { - retCode: -1, - errorMessage: 'marine-js call failed, ' + e, - } as any; - } + const avmArg = serializeAvmArgs(runParams, air, prevData, data, callResults); + const rawResult = await fn(avmArg); + return deserializeAvmResult(rawResult); }