Skip to content

Commit

Permalink
feat: update optimism submodule to latest develop commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tremarkley committed Nov 22, 2024
1 parent ff4daef commit 628132b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/contracts/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ remappings = [
"@contracts-bedrock/=lib/optimism/packages/contracts-bedrock/src/",
"@solady/=lib/optimism/packages/contracts-bedrock/lib/solady/src/",
"@openzeppelin/contracts-v5=lib/optimism/packages/contracts-bedrock/lib/openzeppelin-contracts-v5/contracts/",
"@openzeppelin/contracts/=lib/optimism/packages/contracts-bedrock/lib/openzeppelin-contracts/contracts/",
"@solady-v0.0.245/=lib/optimism/packages/contracts-bedrock/lib/solady-v0.0.245/src/"
]
2 changes: 1 addition & 1 deletion packages/contracts/lib/optimism
Submodule optimism updated 815 files
6 changes: 3 additions & 3 deletions packages/contracts/test/SuperchainERC20.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {IERC20} from "@openzeppelin/contracts-v5/token/ERC20/IERC20.sol";

// Target contract
import {SuperchainERC20} from "@contracts-bedrock/L2/SuperchainERC20.sol";
import {ICrosschainERC20} from "@contracts-bedrock/L2/interfaces/ICrosschainERC20.sol";
import {IERC7802} from "@contracts-bedrock/L2/interfaces/IERC7802.sol";
import {ISuperchainERC20} from "@contracts-bedrock/L2/interfaces/ISuperchainERC20.sol";
import {L2NativeSuperchainERC20} from "src/L2NativeSuperchainERC20.sol";

Expand Down Expand Up @@ -62,7 +62,7 @@ contract SuperchainERC20Test is Test {

// Look for the emit of the `CrosschainMint` event
vm.expectEmit(address(superchainERC20));
emit ICrosschainERC20.CrosschainMint(_to, _amount);
emit IERC7802.CrosschainMint(_to, _amount, SUPERCHAIN_TOKEN_BRIDGE);

// Call the `mint` function with the bridge caller
vm.prank(SUPERCHAIN_TOKEN_BRIDGE);
Expand Down Expand Up @@ -105,7 +105,7 @@ contract SuperchainERC20Test is Test {

// Look for the emit of the `CrosschainBurn` event
vm.expectEmit(address(superchainERC20));
emit ICrosschainERC20.CrosschainBurn(_from, _amount);
emit IERC7802.CrosschainBurn(_from, _amount, SUPERCHAIN_TOKEN_BRIDGE);

// Call the `burn` function with the bridge caller
vm.prank(SUPERCHAIN_TOKEN_BRIDGE);
Expand Down

0 comments on commit 628132b

Please sign in to comment.