Skip to content

Deploy script failing when deploying to arbitrum #96

@0xCSMNT

Description

@0xCSMNT

Issue

I have updated the deploy script to work with arbitrum. You can see changes in this PR on my fork.

Using this command:

forge script script/Deploy.s.sol:Deploy --rpc-url $ARBITRUM_RPC_URL --broadcast --verify --legacy -vvvv

The transaction targets an old block from over 1,000 days ago. On my last transaction it was block
22634489.

Output

[⠊] Compiling...
No files changed, compilation skipped
Traces:
  [7324269] → new Deploy@0x9f7cF1d1F558E57ef88a59ac3D47214eF25B6A06
    └─ ← [Return] 36353 bytes of code

  [1024208712] Deploy::run()
    ├─ [0] VM::envUint("PRIVATE_KEY")
    │   └─ ← [Return] <env var value>
    ├─ [0] VM::addr(<pk>)
    │   └─ ← [Return] 0x[redacted]
    ├─ [0] console::log("Deployer address: ", 0x[redacted]) [staticcall]
    │   └─ ← [Stop]
    ├─ [0] console::log("Deployer balance: ", [redacted]) [staticcall]
    │   └─ ← [Stop]
    ├─ [0] console::log("BlockNumber: ", 22634489 [2.263e7]) [staticcall]
    │   └─ ← [Stop]
    ├─ [0] console::log("ChainId: ", 42161 [4.216e4]) [staticcall]
    │   └─ ← [Stop]
    ├─ [0] console::log("Deploying vault...") [staticcall]
    │   └─ ← [Stop]
    ├─ [0] VM::startBroadcast(<pk>)
    │   └─ ← [Return]
    ├─ [1024151396] → new <unknown>@0x5aAdFB43eF8dAF45DD80F4676345b7676f1D70e3
    │   ├─ emit Initialized(version: 255)
    │   ├─ [2350] PoolAddressesProvider::getPool() [staticcall]
    │   │   └─ ← [Return] InitializableImmutableAdminUpgradeabilityProxy: [0x794a61358D6845594F94dc1DB02A252b5b4814aD]
    │   ├─ [1023728770] InitializableImmutableAdminUpgradeabilityProxy::fallback(0xaf88d065e77c8cC2239327C5EDb3A432268e5831) [staticcall]
    │   │   ├─ [63] L2PoolInstance::getReserveData(0xaf88d065e77c8cC2239327C5EDb3A432268e5831) [delegatecall]
    │   │   │   └─ ← [NotActivated] EvmError: NotActivated
    │   │   └─ ← [Revert] EvmError: Revert
    │   └─ ← [Revert]
    └─ ← [Revert] EvmError: Revert



== Logs ==
  Deployer address:  0x[redacted]
  Deployer balance:  [redacted]
  BlockNumber:  22634489
  ChainId:  42161
  Deploying vault...
Error: script failed: <empty revert data>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions