Content
@
0 reply
0 recast
2 reactions
shotaro
@shotaro
Using transient storage as global state variables is a mistake and an Anti-Pattern. Arbitrum and AMB bridges use this to store the message sender of a call. Prefer local variables with limited scope over global state variables. More functional programming style.
1 reply
0 recast
4 reactions
shotaro
@shotaro
Code smell imo, bad style https://github.com/OffchainLabs/nitro-contracts/blob/2ba206505edd15ad1e177392c454e89479959ca5/src/bridge/Bridge.sol#L213
0 reply
0 recast
0 reaction