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) {