From 9f6046604ab4a647f261cd64e55e19de076a865b Mon Sep 17 00:00:00 2001 From: mouseless <97399882+mouseless-eth@users.noreply.github.com> Date: Mon, 9 Dec 2024 16:35:27 +0000 Subject: [PATCH] support somnia-devnet revert schema --- src/rpc/estimation/gasEstimationsV06.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rpc/estimation/gasEstimationsV06.ts b/src/rpc/estimation/gasEstimationsV06.ts index 19b87262..32b87073 100644 --- a/src/rpc/estimation/gasEstimationsV06.ts +++ b/src/rpc/estimation/gasEstimationsV06.ts @@ -212,9 +212,9 @@ export class GasEstimatorV06 { ), data: hexDataSchema }), - /* Monad devnet RPC return in this format */ + /* Monad devnet and Somnia-Devnet RPC return in this format */ z.object({ - code: z.literal(-32603), + code: z.number(), message: z.string().regex(/execution reverted.*/), data: hexDataSchema })