refactor[contracts]: Port OVM_ECDSAContractAccount to use ovm-solc#546
refactor[contracts]: Port OVM_ECDSAContractAccount to use ovm-solc#546smartcontracts merged 4 commits intomasterfrom
Conversation
🦋 Changeset detectedLatest commit: 21fdc8d The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
karlfloersch
left a comment
There was a problem hiding this comment.
Asked a question here, and @ben-chain you should sign off as well, but overall this looks great!
| if (decodedTx.to == address(0)) { | ||
| (address created, bytes memory revertData) = Lib_SafeExecutionManagerWrapper.safeCREATE( | ||
| gasleft(), | ||
| (address created, bytes memory revertdata) = Lib_ExecutionManagerWrapper.ovmCREATE( |
There was a problem hiding this comment.
Why do we need to wrap create?
There was a problem hiding this comment.
see https://github.com/ethereum-optimism/optimism/pull/475/files#r617100336 for a discussion of the alternative using ovmCREATE. Personally I prefer having the wrapper handle this.
There was a problem hiding this comment.
Yes, agree with Ben here. Doing create in assembly is ugly :-/ much cleaner to wrap it.
packages/contracts/contracts/optimistic-ethereum/OVM/accounts/OVM_ECDSAContractAccount.sol
Outdated
Show resolved
Hide resolved
ben-chain
left a comment
There was a problem hiding this comment.
I have a minor nit around what interface this uses but feels like a separate PR since it was already this way previously. Approving!
tynes
left a comment
There was a problem hiding this comment.
Please add a changeset and is this safe to merge to master?
|
@tynes Safe to merge. |
Description
Another continuation of #475. Ports
OVM_ECDSAContractAccountto useovm-solc. Pretty straightforward PR.