makerdao / multicall

Multicall: Aggregate multiple constant function call results into one
MIT License
851 stars 451 forks source link

Allow failures and return the hash along with the number #6

Closed BlinkyStitt closed 4 years ago

BlinkyStitt commented 4 years ago

Sometimes I'm aggregating calls and I expect some failures. This lets me aggregate them.

Returning the block hash helps me in the event of a re-org.

BlinkyStitt commented 4 years ago

This needs tests for the new functions.

BlinkyStitt commented 4 years ago

Oops. Should have done this on a branch.