Content
@
https://www.optimism.io
0 reply
0 recast
2 reactions
Pierrick
@pierrick
How are we supposed to build on top of Optimism when they use fixed pragma Solidity versions in their contract? Such a pain to deal with... https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/L1/L1CrossDomainMessenger.sol
1 reply
0 recast
0 reaction
smartcontracts
@kelvin
Hmmm this is an interesting point. I believe the motivation was that everything is being tested with that specific compiler version and can't fully guarantee correctness with future compiler versions. Interfaces are already pragma ^ but... 1/2
1 reply
0 recast
0 reaction
smartcontracts
@kelvin
... now that the OP Stack is really meant to be extended, I can see the argument for a principled approach to having pragma ^ on implementations too. cc @maurelian.eth
2 replies
0 recast
1 reaction
maurelian
@maurelian.eth
Yeah, makes a lot of sense. What happens in 'forge build' if we let them float ? Does the compiler version change when we update foundry?
2 replies
0 recast
0 reaction
alex
@alexgrover.eth
you can pin the version used by forge in your foundry.toml: `solc-version = "0.8.15"`
1 reply
0 recast
0 reaction
maurelian
@maurelian.eth
We have deps with various versions, everything breaks when I do that.
0 reply
0 recast
0 reaction