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

estimate gnosis safe message with all gas left in the block #1224

Merged
merged 4 commits into from
Dec 12, 2024

Conversation

KillariDev
Copy link
Contributor

@KillariDev KillariDev commented Dec 10, 2024

this will now make eth_simulateV1 call with two blocks where the second block will contain all the calls not part of the simulation stack.

This fixes the gnosis safe issue partly but not completely (still the proxy call trickery is needed

@KillariDev KillariDev added the bug Something isn't working label Dec 10, 2024
@KillariDev KillariDev removed the request for review from MicahZoltu December 11, 2024 09:40
const [firstBlocksTransactions, ...restofTheBlocks] = transactionsWithRemoveZeroPricedOnes
if (firstBlocksTransactions === undefined) throw new Error('No blocks specified for simulateTransactionsAndSignatures')

// add stateOverrides only to the first block (ecrecover overrides, make me rich and such)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

State overrides carry over to subsequent blocks?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, they modify state and state stays modified

@KillariDev KillariDev merged commit 513f462 into main Dec 12, 2024
1 check passed
@KillariDev KillariDev deleted the gnosis-safe-simulate-with-gas-left-in-block branch December 12, 2024 06:55
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

Successfully merging this pull request may close these issues.

2 participants