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

feat(evm, forge): use alloy TransactionRequest for saving BroadcastableTransactions #6876

Merged
merged 5 commits into from
Jan 22, 2024

Conversation

Evalir
Copy link
Member

@Evalir Evalir commented Jan 22, 2024

Motivation

We keep broadcastable transactions for scripts in ethers types, but this is completely unnecesary until the point where they'll be processed/sent (filled with gas, simualted and whatnot). This means we can just use an RPC TransactionRequest type to save the data before its processed.

Solution

Phases out TypedTransaction/TransactionRequest from the evm core crate, and removes a bunch of unnecesary conversions in scripts by result. This contains TypedTransaction/TransactionRequest ethers equivalents to only script and cast.

crates/forge/bin/cmd/script/executor.rs Outdated Show resolved Hide resolved
@Evalir Evalir merged commit c6790a0 into master Jan 22, 2024
20 checks passed
@Evalir Evalir deleted the evalir/use-alloy-request branch January 22, 2024 19:09
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.

2 participants