Skip to content

Conversation

@howydev
Copy link
Contributor

@howydev howydev commented Oct 15, 2025

No description provided.

@howydev howydev requested a review from joshieDo October 15, 2025 18:56
@github-actions
Copy link
Contributor

🤖 Bytecode changes detected! EIP-712 domain versions have been automatically updated for: Simulator

/// If parsing fails (gasUsed == 0), this function stores the orchestrator's error in memory
/// so the caller can bubble it up using bubbleUpMulticall3Error.
/// @param multicall3 The multicall3 contract address
/// @param preCalls Array of Call3 structs representing calls to execute before the orchestrator call
Copy link
Contributor

@joshieDo joshieDo Oct 16, 2025

Choose a reason for hiding this comment

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

nit: preCalls can be a bit confusing, could we just add a smol note that this is different than intent.precalls

IMulticall3.Result memory lastResult = results[results.length - 1];
lastReturnData = lastResult.returnData;

// Parse gasUsed from the orchestrator's return data
Copy link
Contributor

@joshieDo joshieDo Oct 16, 2025

Choose a reason for hiding this comment

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

this is only returning the gasUsed by the intent right? would be interested in the overal gasUsed of the whole multicall including the intent and precalls

Copy link
Contributor

@joshieDo joshieDo Oct 16, 2025

Choose a reason for hiding this comment

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

actually both. used by intent (so we can cap its execution) and by intent+precalls so we can price it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense, i think the current gasUsed is the value to cap, we need another totalGas or something with the preCall

@howydev howydev force-pushed the howy/add-simulator-multicall branch from 74a27d3 to 161bd4c Compare October 16, 2025 23:34
@github-actions
Copy link
Contributor

🤖 Bytecode changes detected! EIP-712 domain versions have been automatically updated for: Simulator

@howydev howydev requested a review from joshieDo October 17, 2025 17:14
@howydev howydev merged commit 1fe51b3 into main Oct 21, 2025
2 checks passed
@howydev howydev deleted the howy/add-simulator-multicall branch October 21, 2025 02:20
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