Skip to content

forge script --ledger deployment fails #2709

@dekz

Description

@dekz

Component

Forge

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.2.0 (6cd6618 2022-08-11T00:05:44.416299Z)

What command(s) is the bug in?

forge script --ledger

Operating System

macOS (Apple Silicon)

Describe the bug

I can successfully use cast send --ledger but am unable to use forge script --ledger with error of:

Error:
hidapi error: hid_error is not implemented yet

Can confirm that cast send works exactly as expected, so could be my misuse of forge script.

I'm using the following command

forge script script/abcd/Deploy.s.sol -f $ETH_RPC_URL -vvvv --ledger --hd-paths "m/44'/60'/0'/1" --legacy --broadcast --sender "0xABCD"

I can confirm that 0xABCD is at the hd-path m/44'/60'/0'/1

Immediately switching over to cast send and there is no issue at all.

cast send 0xABCD --hd-path "m/44'/60'/0'/1" --ledger --value 0 --legacy

Successfully sends a transaction to itself from itself using the ledger

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions