diff --git a/src/createRollupPrepareDeploymentParamsConfig.ts b/src/createRollupPrepareDeploymentParamsConfig.ts index dd8ab861..62f21e85 100644 --- a/src/createRollupPrepareDeploymentParamsConfig.ts +++ b/src/createRollupPrepareDeploymentParamsConfig.ts @@ -14,7 +14,6 @@ import { SequencerInboxMaxTimeVariation, getDefaultSequencerInboxMaxTimeVariation, } from './getDefaultSequencerInboxMaxTimeVariation'; -import { scaleToNativeTokenDecimals } from './utils/decimals'; export type CreateRollupPrepareDeploymentParamsConfigResult = CreateRollupFunctionInputs[0]['config']; @@ -53,7 +52,6 @@ export type CreateRollupPrepareDeploymentParamsConfigParams = Prettify< * @param {BigInt} [params.sequencerInboxMaxTimeVariation.futureBlocks] * @param {BigInt} [params.sequencerInboxMaxTimeVariation.delaySeconds] * @param {BigInt} [params.sequencerInboxMaxTimeVariation.futureSeconds] - * @param {number} [params.decimals] * * @returns {Object} {@link CreateRollupPrepareDeploymentParamsConfigResult} * @@ -113,18 +111,10 @@ export function createRollupPrepareDeploymentParamsConfig { }), ).toMatchSnapshot(); }); - -it('creates config for a chain with non-18 decimals token on top of arbitrum sepolia with defaults', async () => { - const arbitrumSepoliaClient = createPublicClient({ - chain: arbitrumSepolia, - transport: http(), - }); - - expect( - createRollupPrepareDeploymentParamsConfig(arbitrumSepoliaClient, { - owner: vitalik, - chainId, - decimals: 6, - }), - ).toMatchSnapshot(); -}); - -it('creates config for a chain with non-18 decimals token on top of arbitrum sepolia with overrides', () => { - const arbitrumSepoliaClient = createPublicClient({ - chain: arbitrumSepolia, - transport: http(), - }); - - expect( - createRollupPrepareDeploymentParamsConfig(arbitrumSepoliaClient, { - ...getOverrides({ owner: vitalik, chainId }), - decimals: 6, - }), - ).toMatchSnapshot(); -}); diff --git a/src/createRollupPrepareTransactionRequest.unit.test.ts b/src/createRollupPrepareTransactionRequest.unit.test.ts index 09234cd5..82401d36 100644 --- a/src/createRollupPrepareTransactionRequest.unit.test.ts +++ b/src/createRollupPrepareTransactionRequest.unit.test.ts @@ -446,12 +446,11 @@ it(`successfully prepare transaction request if "params.nativeToken" doesn't use }), batchPosters: [deployer.address], validators: [deployer.address], - nativeToken: '0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d', + nativeToken: '0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d', // USDC }, value: createRollupDefaultRetryablesFees, account: deployer.address, publicClient, - gasOverrides: { gasLimit: { base: 1_000n } }, });