What does This Mean in Foundry: a = new A{value: 1 ether}(address(b));?

Learn how to deposit Ether and typecast a contract to an address in a foundry test environment

Sabit
Auditor Brainpower
Published in
4 min readOct 25, 2023

--

Photo by Ali Kazal on Unsplash

Foundry can be complex to beginners. It WAS complex for me.

But it’s simple when you have clear explanations about how it works. As far as I know, these simple…

--

--