Skip to content

Conversation

@aiman
Copy link
Contributor

@aiman aiman commented Jul 30, 2025

Main change is support for signing legacy type 0x0 transactions.

The original motivation for keeping type checking in the default
environment is so that it can be executed from the `github` and `local`
environments. Otherwise, it would not be possible to run type checks
in those environments against the correct version of autonity.py. This
restores `check-types` to the default environment, partially reverting
the change in e74d922.

This would be how to run type checks in the `github` environment:

```
hatch env prune
export AUTPY_GIT_COMMIT=...
hatch env create github
hatch -e github run pip freeze | grep autonity # verify correct
hatch run github:check-types
```
@aiman aiman requested a review from szemate July 30, 2025 12:55
aiman added 4 commits July 30, 2025 16:05
The `tx make --legacy` option does not do what it says, because `tx
make` adds `maxFeePerGas` and `maxPriorityFeePerGas` to the transaction
params, negating the option, and forcing it to become a TransactionType
0x2 instead.

In order to force a LegacyTransaction as per EIP-2718, set the
`--gas-price` instead, which matches the logic used and expected by
web3.py itself.
@aiman aiman force-pushed the trezor-legacy-transactions branch from 03bf33c to e456ce7 Compare July 30, 2025 13:07
@aiman aiman merged commit 25b6652 into master Aug 5, 2025
10 checks passed
@aiman aiman deleted the trezor-legacy-transactions branch August 5, 2025 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants