OP Stack Setting up L2 configuration ERROR - "json: cannot unmarshal string into Go struct field Deployment.args of type []interface {}"

@Thanh_Nguyen Facing the above error when trying to run an OP Stack L2 powered by Avail.

Referring:

2 Likes

@Thanh_Nguyen Please let us know more information about the following:


i think missing something

maybe try running core deployment step again, if it has missed something

thank i will try it , i changed a new server & repeat but stil error

Hi @Thanh_Nguyen, Can you confirm this? Did you change the deployment context from “getting-started” to “avail-optimism” in point 3 How to Use the OP Stack with Avail | Avail Docs

Hey @Thanh_Nguyen , this error is coming. because the enableDA in ./packages/contracts-bedrock/deploy-config/avail-optimism.json is string(true) but it should be boolean(true)

I changed “true” to true. But not working. Still eroooor

I changed. Deposited fund to wallet

Could you share what the error is? @Thanh_Nguyen

@Thanh_Nguyen , have you changed $L1_RPC with your RPC_URL in this step?

yes i changed alchemy

It still shows the same JSON parsing error. Could you send me your avail-optimism config file? @Thanh_Nguyen

1 Like

{
“numDeployConfirmations”: 1,
“finalSystemOwner”: “0xdB7500834d0616E23bB244FC15bcDA630C611b05”,
“portalGuardian”: “0xdB7500834d0616E23bB244FC15bcDA630C611b05”,
“controller”: “0xdB7500834d0616E23bB244FC15bcDA630C611b05”,
“l1StartingBlockTag”: “0xc15cc2609271c33888536f17a79488c0968d894854e157c5290d9837413ad487”,
“l1ChainID”: 5,
“l2ChainID”: 42069,
“l2BlockTime”: 2,
“maxSequencerDrift”: 600,
“sequencerWindowSize”: 3600,
“channelTimeout”: 300,
“p2pSequencerAddress”: “0xE0eCbf6edb5152439e9838055144b9D5c5d09540”,
“batchInboxAddress”: “0xff00000000000000000000000000000000042069”,
“batchSenderAddress”: “0x066280F84d2A5110C83a8B824218417093955f0F”,
“l2OutputOracleSubmissionInterval”: 120,
“l2OutputOracleStartingBlockNumber”: 0,
“l2OutputOracleStartingTimestamp”: 1676253324,
“l2OutputOracleProposer”: “0xd3aF8BDe600583fE354473b10b2Db4c53749Cde9”,
“l2OutputOracleChallenger”: “0xdB7500834d0616E23bB244FC15bcDA630C611b05”,
“finalizationPeriodSeconds”: 12,
“proxyAdminOwner”: “0xdB7500834d0616E23bB244FC15bcDA630C611b05”,
“baseFeeVaultRecipient”: “0xdB7500834d0616E23bB244FC15bcDA630C611b05”,
“l1FeeVaultRecipient”: “0xdB7500834d0616E23bB244FC15bcDA630C611b05”,
“sequencerFeeVaultRecipient”: “0xdB7500834d0616E23bB244FC15bcDA630C611b05”,
“baseFeeVaultMinimumWithdrawalAmount”: “0x8ac7230489e80000”,
“l1FeeVaultMinimumWithdrawalAmount”: “0x8ac7230489e80000”,
“sequencerFeeVaultMinimumWithdrawalAmount”: “0x8ac7230489e80000”,
“baseFeeVaultWithdrawalNetwork”: 0,
“l1FeeVaultWithdrawalNetwork”: 0,
“sequencerFeeVaultWithdrawalNetwork”: 0,
“gasPriceOracleOverhead”: 2100,
“gasPriceOracleScalar”: 1000000,
“enableGovernance”: true,
“governanceTokenSymbol”: “OP”,
“governanceTokenName”: “Optimism”,
“governanceTokenOwner”: “0xdB7500834d0616E23bB244FC15bcDA630C611b05”,
“l2GenesisBlockGasLimit”: “0x1c9c380”,
“l2GenesisBlockBaseFeePerGas”: “0x3b9aca00”,
“l2GenesisRegolithTimeOffset”: “0x0”,
“eip1559Denominator”: 50,
“eip1559Elasticity”: 10,
“enableDA”: true
}

This contain in file

{
  "numDeployConfirmations": 1,
  "finalSystemOwner": "0xdB7500834d0616E23bB244FC15bcDA630C611b05",
  "portalGuardian": "0xdB7500834d0616E23bB244FC15bcDA630C611b05",
  "controller": "0xdB7500834d0616E23bB244FC15bcDA630C611b05",
  "l1StartingBlockTag": "0xc15cc2609271c33888536f17a79488c0968d894854e157c5290d9837413ad487",
  "l1ChainID": 5,
  "l2ChainID": 42069,
  "l2BlockTime": 2,
  "maxSequencerDrift": 600,
  "sequencerWindowSize": 3600,
  "channelTimeout": 300,
  "p2pSequencerAddress": "0xE0eCbf6edb5152439e9838055144b9D5c5d09540",
  "batchInboxAddress": "0xff00000000000000000000000000000000042069",
  "batchSenderAddress": "0x066280F84d2A5110C83a8B824218417093955f0F",
  "l2OutputOracleSubmissionInterval": 120,
  "l2OutputOracleStartingBlockNumber": 0,
  "l2OutputOracleStartingTimestamp": 1676253324,
  "l2OutputOracleProposer": "0xd3aF8BDe600583fE354473b10b2Db4c53749Cde9",
  "l2OutputOracleChallenger": "0xdB7500834d0616E23bB244FC15bcDA630C611b05",
  "finalizationPeriodSeconds": 12,
  "proxyAdminOwner": "0xdB7500834d0616E23bB244FC15bcDA630C611b05",
  "baseFeeVaultRecipient": "0xdB7500834d0616E23bB244FC15bcDA630C611b05",
  "l1FeeVaultRecipient": "0xdB7500834d0616E23bB244FC15bcDA630C611b05",
  "sequencerFeeVaultRecipient": "0xdB7500834d0616E23bB244FC15bcDA630C611b05",
  "baseFeeVaultMinimumWithdrawalAmount": "0x8ac7230489e80000",
  "l1FeeVaultMinimumWithdrawalAmount": "0x8ac7230489e80000",
  "sequencerFeeVaultMinimumWithdrawalAmount": "0x8ac7230489e80000",
  "baseFeeVaultWithdrawalNetwork": 0,
  "l1FeeVaultWithdrawalNetwork": 0,
  "sequencerFeeVaultWithdrawalNetwork": 0,
  "gasPriceOracleOverhead": 2100,
  "gasPriceOracleScalar": 1000000,
  "enableGovernance": true,
  "governanceTokenSymbol": "OP",
  "governanceTokenName": "Optimism",
  "governanceTokenOwner": "0xdB7500834d0616E23bB244FC15bcDA630C611b05",
  "l2GenesisBlockGasLimit": "0x1c9c380",
  "l2GenesisBlockBaseFeePerGas": "0x3b9aca00",
  "l2GenesisRegolithTimeOffset": "0x0",
  "eip1559Denominator": 50,
  "eip1559Elasticity": 10,
  "enableDA": true
}

this is text in file

{
  "numDeployConfirmations": 1,
  "finalSystemOwner": "0xdB7500834d0616E23bB244FC15bcDA630C611b05",
  "portalGuardian": "0xdB7500834d0616E23bB244FC15bcDA630C611b05",
  "controller": "0xdB7500834d0616E23bB244FC15bcDA630C611b05",
  "l1StartingBlockTag": "0xc15cc2609271c33888536f17a79488c0968d894854e157c5290d9837413ad487",
  "l1ChainID": 5,
  "l2ChainID": 42069,
  "l2BlockTime": 2,
  "maxSequencerDrift": 600,
  "sequencerWindowSize": 3600,
  "channelTimeout": 300,
  "p2pSequencerAddress": "0xE0eCbf6edb5152439e9838055144b9D5c5d09540",
  "batchInboxAddress": "0xff00000000000000000000000000000000042069",
  "batchSenderAddress": "0x066280F84d2A5110C83a8B824218417093955f0F",
  "l2OutputOracleSubmissionInterval": 120,
  "l2OutputOracleStartingBlockNumber": 0,
  "l2OutputOracleStartingTimestamp": 1676253324,
  "l2OutputOracleProposer": "0xd3aF8BDe600583fE354473b10b2Db4c53749Cde9",
  "l2OutputOracleChallenger": "0xdB7500834d0616E23bB244FC15bcDA630C611b05",
  "finalizationPeriodSeconds": 12,
  "proxyAdminOwner": "0xdB7500834d0616E23bB244FC15bcDA630C611b05",
  "baseFeeVaultRecipient": "0xdB7500834d0616E23bB244FC15bcDA630C611b05",
  "l1FeeVaultRecipient": "0xdB7500834d0616E23bB244FC15bcDA630C611b05",
  "sequencerFeeVaultRecipient": "0xdB7500834d0616E23bB244FC15bcDA630C611b05",
  "baseFeeVaultMinimumWithdrawalAmount": "0x8ac7230489e80000",
  "l1FeeVaultMinimumWithdrawalAmount": "0x8ac7230489e80000",
  "sequencerFeeVaultMinimumWithdrawalAmount": "0x8ac7230489e80000",
  "baseFeeVaultWithdrawalNetwork": 0,
  "l1FeeVaultWithdrawalNetwork": 0,
  "sequencerFeeVaultWithdrawalNetwork": 0,
  "gasPriceOracleOverhead": 2100,
  "gasPriceOracleScalar": 1000000,
  "enableGovernance": true,
  "governanceTokenSymbol": "OP",
  "governanceTokenName": "Optimism",
  "governanceTokenOwner": "0xdB7500834d0616E23bB244FC15bcDA630C611b05",
  "l2GenesisBlockGasLimit": "0x1c9c380",
  "l2GenesisBlockBaseFeePerGas": "0x3b9aca00",
  "l2GenesisRegolithTimeOffset": "0x0",
  "eip1559Denominator": 50,
  "eip1559Elasticity": 10,
  "enableDA": true
}

this is text in file

{
  "numDeployConfirmations": 1,
  "finalSystemOwner": "0xdB7500834d0616E23bB244FC15bcDA630C611b05",
  "portalGuardian": "0xdB7500834d0616E23bB244FC15bcDA630C611b05",
  "controller": "0xdB7500834d0616E23bB244FC15bcDA630C611b05",
  "l1StartingBlockTag": "0xc15cc2609271c33888536f17a79488c0968d894854e157c5290d9837413ad487",
  "l1ChainID": 5,
  "l2ChainID": 42069,
  "l2BlockTime": 2,
  "maxSequencerDrift": 600,
  "sequencerWindowSize": 3600,
  "channelTimeout": 300,
  "p2pSequencerAddress": "0xE0eCbf6edb5152439e9838055144b9D5c5d09540",
  "batchInboxAddress": "0xff00000000000000000000000000000000042069",
  "batchSenderAddress": "0x066280F84d2A5110C83a8B824218417093955f0F",
  "l2OutputOracleSubmissionInterval": 120,
  "l2OutputOracleStartingBlockNumber": 0,
  "l2OutputOracleStartingTimestamp": 1676253324,
  "l2OutputOracleProposer": "0xd3aF8BDe600583fE354473b10b2Db4c53749Cde9",
  "l2OutputOracleChallenger": "0xdB7500834d0616E23bB244FC15bcDA630C611b05",
  "finalizationPeriodSeconds": 12,
  "proxyAdminOwner": "0xdB7500834d0616E23bB244FC15bcDA630C611b05",
  "baseFeeVaultRecipient": "0xdB7500834d0616E23bB244FC15bcDA630C611b05",
  "l1FeeVaultRecipient": "0xdB7500834d0616E23bB244FC15bcDA630C611b05",
  "sequencerFeeVaultRecipient": "0xdB7500834d0616E23bB244FC15bcDA630C611b05",
  "baseFeeVaultMinimumWithdrawalAmount": "0x8ac7230489e80000",
  "l1FeeVaultMinimumWithdrawalAmount": "0x8ac7230489e80000",
  "sequencerFeeVaultMinimumWithdrawalAmount": "0x8ac7230489e80000",
  "baseFeeVaultWithdrawalNetwork": 0,
  "l1FeeVaultWithdrawalNetwork": 0,
  "sequencerFeeVaultWithdrawalNetwork": 0,
  "gasPriceOracleOverhead": 2100,
  "gasPriceOracleScalar": 1000000,
  "enableGovernance": true,
  "governanceTokenSymbol": "OP",
  "governanceTokenName": "Optimism",
  "governanceTokenOwner": "0xdB7500834d0616E23bB244FC15bcDA630C611b05",
  "l2GenesisBlockGasLimit": "0x1c9c380",
  "l2GenesisBlockBaseFeePerGas": "0x3b9aca00",
  "l2GenesisRegolithTimeOffset": "0x0",
  "eip1559Denominator": 50,
  "eip1559Elasticity": 10,
  "enableDA": true
}

file { "numDeployConfirmations": 1, "finalSystemOwner": "0xdB7500834d0616E23bB244FC15bcDA630C611b05", "portalGuardian": "0xdB7500834d0616E23bB244FC15bcDA630C611b05", "controller": "0xdB7500834d0616E23bB244FC15bcDA630C611b05", "l1StartingBlockTag": "0xc15cc2609271c33888536f17a79488c0968d894854e157c5290d9837413ad487", "l1ChainID": 5, "l2ChainID": 42069, "l2BlockTime": 2, "maxSequencerDrift": 600, "sequencerWindowSize": 3600, "channelTimeout": 300, "p2pSequencerAddress": "0xE0eCbf6edb5152439e9838055144b9D5c5d09540", "batchInboxAddress": "0xff00000000000000000000000000000000042069", "batchSenderAddress": "0x066280F84d2A5110C83a8B824218417093955f0F", "l2OutputOracleSubmissionInterval": 120, "l2OutputOracleStartingBlockNumber": 0, "l2OutputOracleStartingTimestamp": 1676253324, "l2OutputOracleProposer": "0xd3aF8BDe600583fE354473b10b2Db4c53749Cde9", "l2OutputOracleChallenger": "0xdB7500834d0616E23bB244FC15bcDA630C611b05", "finalizationPeriodSeconds": 12, "proxyAdminOwner": "0xdB7500834d0616E23bB244FC15bcDA630C611b05", "baseFeeVaultRecipient": "0xdB7500834d0616E23bB244FC15bcDA630C611b05", "l1FeeVaultRecipient": "0xdB7500834d0616E23bB244FC15bcDA630C611b05", "sequencerFeeVaultRecipient": "0xdB7500834d0616E23bB244FC15bcDA630C611b05", "baseFeeVaultMinimumWithdrawalAmount": "0x8ac7230489e80000", "l1FeeVaultMinimumWithdrawalAmount": "0x8ac7230489e80000", "sequencerFeeVaultMinimumWithdrawalAmount": "0x8ac7230489e80000", "baseFeeVaultWithdrawalNetwork": 0, "l1FeeVaultWithdrawalNetwork": 0, "sequencerFeeVaultWithdrawalNetwork": 0, "gasPriceOracleOverhead": 2100, "gasPriceOracleScalar": 1000000, "enableGovernance": true, "governanceTokenSymbol": "OP", "governanceTokenName": "Optimism", "governanceTokenOwner": "0xdB7500834d0616E23bB244FC15bcDA630C611b05", "l2GenesisBlockGasLimit": "0x1c9c380", "l2GenesisBlockBaseFeePerGas": "0x3b9aca00", "l2GenesisRegolithTimeOffset": "0x0", "eip1559Denominator": 50, "eip1559Elasticity": 10, "enableDA": true }

hi there

This looks fine; I suggest you try again from the start because it works perfectly fine on my side. Your error is based on JSON parsing, but I am still investigating when it triggers.