Skip to content

--raw-unsigned Flag not mentioned in help + need clarification in flow/usage #10165

@AdvayAgrawal

Description

@AdvayAgrawal

Component

Cast

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

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge Version: 1.0.0-dev

What version of Foundryup are you on?

foundryup: 0.3.3

What command(s) is the bug in?

cast mktx

Operating System

Windows

Describe the bug

cast mktx --help does not mention --raw-unsigned flag as a feature, maybe it should be added here.

Along with that, this is what i wish to achieve using foundry tools
https://medium.com/@LucasJennings/a-step-by-step-guide-to-generating-raw-ethereum-transactions-c3292ad36ab4

I understood that, from the raw rlp transaction here, we can sign it using cast wallet sign <hash(raw unsigned txn)> (making sure the --from address is same as the account signed with), append this signature to the raw tx, and directly publish the txn using cast publish

I was in the impression that this flow will work, but i tried to verify the signed tx using cast mktx without --raw-unsigned flag for the same transaction data, and the bytes did not match

Is there some gaps in my understanding? Would greatly appreciate help here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-bugType: bugT-needs-triageType: this issue needs to be labelled

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions