foundry icon indicating copy to clipboard operation
foundry copied to clipboard

debt(`cheatcodes`): use return `Self::Return` when implementing cheatcodes

Open DaniPopes opened this issue 6 months ago • 0 comments

Currently we return an untyped Vec which must be abi encoded correctly to the corresponding return type.

We can simplify the implementations by returning the corresponding return type directly.

This makes all cheatcodes fully statically typed.

Blocked on https://github.com/foundry-rs/foundry/issues/8404 to avoid extra churn on trait functions

DaniPopes avatar Aug 08 '24 13:08 DaniPopes