contracts-bedrock: fix OptimismMintableERC20Created#3104
contracts-bedrock: fix OptimismMintableERC20Created#3104mergify[bot] merged 5 commits intodevelopfrom
OptimismMintableERC20Created#3104Conversation
🦋 Changeset detectedLatest commit: 761f90f The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
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 |
|
Good catch. I think this bug is a good argument for the changed proposed in #3064. This lgtm, but please see my message in slack about a proposal for how to handle all impl changes during the OZ audit. |
|
Can we move this here so that it can get reviewed along with audit fixes? |
|
I moved your commit to here, so I think we can close this for now. |
packages/contracts-bedrock/contracts/universal/OptimismMintableERC20Factory.sol
Show resolved
Hide resolved
|
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
|
@tynes I think this got stale because it was moved into the fixes repo temporarily. I'm reopening it now, and will push a rebase shortly. |
761ab09 to
afb414a
Compare
afb414a to
0c20a11
Compare
|
Hey @tynes! This PR has merge conflicts. Please fix them before continuing review. |
0c20a11 to
8381dcd
Compare
|
Need to do a bit of debugging to figure out why this broke the deposit-erc20 integration test |
|
Hey @tynes! This PR has merge conflicts. Please fix them before continuing review. |
|
See this comment for fixing the tests: optimism/packages/sdk/tasks/deposit-erc20.ts Lines 78 to 80 in 4a5e183 |
8381dcd to
3b52c1e
Compare
The names of the event args were backwards from what they
were supposed to be. I noticed this while writing integration
tests for the sdk.
The event is used like this:
```solidity
emit OptimismMintableERC20Created(_remoteToken, address(localToken), msg.sender);
```
The event was updated to look like this:
```solidity
event OptimismMintableERC20Created(
address indexed remoteToken,
address indexed localToken,
address deployer
);
```
The `remoteToken` is first and the `localToken` is second.
3b52c1e to
8692b26
Compare
|
Hey @tynes! This PR has merge conflicts. Please fix them before continuing review. |
|
This PR has been added to the merge queue, and will be merged soon. |
|
This PR is next in line to be merged, and will be merged as soon as checks pass. |
* contracts-bedrock: fix `OptimismMintableERC20Created`
The names of the event args were backwards from what they
were supposed to be. I noticed this while writing integration
tests for the sdk.
The event is used like this:
```solidity
emit OptimismMintableERC20Created(_remoteToken, address(localToken), msg.sender);
```
The event was updated to look like this:
```solidity
event OptimismMintableERC20Created(
address indexed remoteToken,
address indexed localToken,
address deployer
);
```
The `remoteToken` is first and the `localToken` is second.
* ctb: Avoid extra casting from contract to address
* chore: Regen bindings and snapshot
* chore: Update bindings
Co-authored-by: Maurelian <maurelian@protonmail.ch>
Co-authored-by: Matthew Slipper <me@matthewslipper.com>
Description
The names of the event args were backwards from what they
were supposed to be. I noticed this while writing integration
tests for the sdk.
The event is used like this:
The event was updated to look like this:
The
remoteTokenis first and thelocalTokenis second.