Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(VirtualMachineError): v must be 0x0 or 0x1 for EIP-2718 style signatures when calling account.sign_transaction() #19

Open
penandlim opened this issue Jan 15, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@penandlim
Copy link

Environment information

  • ape and plugin versions:
$ ape --version
0.8.24
$ ape plugins list
Third-party Plugins
  aws          0.8.0a3
  etherscan    0.8.4
  foundry      0.8.7
  infura       0.8.4
  tokens       0.8.3
  • Python Version: 3.11.10
  • OS: osx

What went wrong?

When submitting an unsigned transaction, it errors out with the error (VirtualMachineError) transaction could not be decoded: v must be 0x0 or 0x1 for EIP-2718 style signatures

How can it be fixed?

https://github.com/ApeWorX/ape-aws/blob/main/ape_aws/accounts.py#L98
Replacing this line to use 1 as the v value seems to fix this for me on Eth mainnet.

        txn.signature = TransactionSignature(
            **_convert_der_to_rsv(msg_sig, 1)
        )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant