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
Pierrick
@pierrick
I ended up copy/pasting the interfaces I needed in my project. When using only Foundry, it's pretty unfortunate to have to import the whole repository. Could be nice to have a repository with only interfaces but it could get messy cause once you change an interface, you need to also update the code in the monorepo.
0 reply
0 recast
0 reaction