Content
@
0 reply
0 recast
0 reaction
Sabnock
@sabnock.eth
What are the most interesting examples you've seen of cast usage?
4 replies
0 recast
4 reactions
Devan Non
@devanon
We used (abused) it here: https://github.com/memester-xyz/surl/blob/034c912ae9b5e707a5afd21f145b452ad8e800df/src/Surl.sol#L91
1 reply
0 recast
3 reactions
Jordan Hall | oighty.eth
@oighty
Can be used to extend (read: hack) forge scripts when functionality isn't exposed or doesn't make sense as a cheat code. An example is signing something with a hardware wallet. https://github.com/ind-igo/forge-safe/blob/4ce820bad668846207f34b6f439021ad151f0a1e/src/BatchScript.sol#L203
0 reply
0 recast
2 reactions
0xPilou
@pilou
Its a pretty basic use case, but using cast to debug failed transactions does wonders. cast run {TX_HASH}
0 reply
0 recast
1 reaction
parseb
@parseb.eth
copying storage from one immutable contract to its new version. (have not seen but imagine possible as part of a script with json file storage maybe... ?)
0 reply
0 recast
0 reaction