From 3e0b46a1e7ecf75ace74f1ebc3e2b44b0384ade0 Mon Sep 17 00:00:00 2001 From: Christophe Date: Thu, 24 Oct 2024 12:28:37 +0000 Subject: [PATCH] Add back condition for decimals over 36 --- src/createRollupPrepareTransactionRequest.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/createRollupPrepareTransactionRequest.ts b/src/createRollupPrepareTransactionRequest.ts index e57d6487..e130686a 100644 --- a/src/createRollupPrepareTransactionRequest.ts +++ b/src/createRollupPrepareTransactionRequest.ts @@ -70,6 +70,16 @@ export async function createRollupPrepareTransactionRequest 36n + ) { + throw new Error( + `"params.nativeToken" can only be configured with a token that uses 36 decimals or less.`, + ); + } + let maxDataSize: bigint; if (parentChainIsCustom) {