Skip to content

TransactionFactory.CreateTransaction(string) throws Signature not initiated or calculated #1006

@lutk

Description

@lutk

Hello!

I first create an unsigned transaction LegacyTransactionChainId and then convert it to a hex using the method ISignedTransaction.GetRLPEncoded(). I get hex 0xec808504a817c80082520894be18a9048ba3138fc430ca1a574ad113218ff79a8806f05b59d3b2000080808080. You can check it here.

Next I perform reverse decoding using the method TransactionFactory.CreateTransaction(string), but get an exception.

The same sequence of actions works fine for Transaction1559.
Hex: 0x02f401808504a817c80085746a52880082520894be18a9048ba3138fc430ca1a574ad113218ff79a8806f05b59d3b2000080c0808080

Expected Behavior

I expect to get ISignedTransaction without a signature.

Current Behavior

I get an exception:

System.Exception: Signature not initiated or calculated
   at Nethereum.Model.RLPSignedDataHashBuilder.IsVSignatureForChain()
   at Nethereum.Model.TransactionFactory.CreateTransaction(Byte[] rlp)
   at Nethereum.Model.TransactionFactory.CreateTransaction(String rlpHex)

Context (Environment)

I'm using Nethereum version 4.18.0

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