Commit b9241301 authored by elenadimitrova's avatar elenadimitrova Committed by Kelvin Fichter

Rename OVM_L2StandardTokenFactory to L2StandardTokenFactory

parent 204ca2be
...@@ -7,13 +7,13 @@ import { L2StandardERC20 } from "../../libraries/standards/L2StandardERC20.sol"; ...@@ -7,13 +7,13 @@ import { L2StandardERC20 } from "../../libraries/standards/L2StandardERC20.sol";
import { Lib_PredeployAddresses } from "../../libraries/constants/Lib_PredeployAddresses.sol"; import { Lib_PredeployAddresses } from "../../libraries/constants/Lib_PredeployAddresses.sol";
/** /**
* @title OVM_L2StandardTokenFactory * @title L2StandardTokenFactory
* @dev Factory contract for creating standard L2 token representations of L1 ERC20s * @dev Factory contract for creating standard L2 token representations of L1 ERC20s
* compatible with and working on the standard bridge. * compatible with and working on the standard bridge.
* *
* Runtime target: OVM * Runtime target: OVM
*/ */
contract OVM_L2StandardTokenFactory { contract L2StandardTokenFactory {
event StandardL2TokenCreated(address indexed _l1Token, address indexed _l2Token); event StandardL2TokenCreated(address indexed _l1Token, address indexed _l2Token);
......
...@@ -15,7 +15,7 @@ export const predeploys = { ...@@ -15,7 +15,7 @@ export const predeploys = {
OVM_GasPriceOracle: '0x420000000000000000000000000000000000000F', OVM_GasPriceOracle: '0x420000000000000000000000000000000000000F',
L2StandardBridge: '0x4200000000000000000000000000000000000010', L2StandardBridge: '0x4200000000000000000000000000000000000010',
OVM_SequencerFeeVault: '0x4200000000000000000000000000000000000011', OVM_SequencerFeeVault: '0x4200000000000000000000000000000000000011',
OVM_L2StandardTokenFactory: '0x4200000000000000000000000000000000000012', L2StandardTokenFactory: '0x4200000000000000000000000000000000000012',
OVM_L1BlockNumber: '0x4200000000000000000000000000000000000013', OVM_L1BlockNumber: '0x4200000000000000000000000000000000000013',
// We're temporarily disabling OVM_ETH because the jury is still out on whether or not ETH as an // We're temporarily disabling OVM_ETH because the jury is still out on whether or not ETH as an
......
...@@ -8,11 +8,11 @@ import { smoddit } from '@eth-optimism/smock' ...@@ -8,11 +8,11 @@ import { smoddit } from '@eth-optimism/smock'
/* Internal Imports */ /* Internal Imports */
import { predeploys, getContractInterface } from '../../../../src' import { predeploys, getContractInterface } from '../../../../src'
describe('OVM_L2StandardTokenFactory', () => { describe('L2StandardTokenFactory', () => {
let signer: Signer let signer: Signer
let Factory__L1ERC20: ContractFactory let Factory__L1ERC20: ContractFactory
let L1ERC20: Contract let L1ERC20: Contract
let OVM_L2StandardTokenFactory: Contract let L2StandardTokenFactory: Contract
before(async () => { before(async () => {
;[signer] = await ethers.getSigners() ;[signer] = await ethers.getSigners()
// deploy an ERC20 contract on L1 // deploy an ERC20 contract on L1
...@@ -21,14 +21,14 @@ describe('OVM_L2StandardTokenFactory', () => { ...@@ -21,14 +21,14 @@ describe('OVM_L2StandardTokenFactory', () => {
) )
L1ERC20 = await Factory__L1ERC20.deploy('L1ERC20', 'ERC') L1ERC20 = await Factory__L1ERC20.deploy('L1ERC20', 'ERC')
OVM_L2StandardTokenFactory = await ( L2StandardTokenFactory = await (
await ethers.getContractFactory('OVM_L2StandardTokenFactory') await ethers.getContractFactory('L2StandardTokenFactory')
).deploy() ).deploy()
}) })
describe('Standard token factory', () => { describe('Standard token factory', () => {
it('should be able to create a standard token', async () => { it('should be able to create a standard token', async () => {
const tx = await OVM_L2StandardTokenFactory.createStandardL2Token( const tx = await L2StandardTokenFactory.createStandardL2Token(
L1ERC20.address, L1ERC20.address,
'L2ERC20', 'L2ERC20',
'ERC' 'ERC'
...@@ -55,7 +55,7 @@ describe('OVM_L2StandardTokenFactory', () => { ...@@ -55,7 +55,7 @@ describe('OVM_L2StandardTokenFactory', () => {
it('should not be able to create a standard token with a 0 address for l1 token', async () => { it('should not be able to create a standard token with a 0 address for l1 token', async () => {
await expect( await expect(
OVM_L2StandardTokenFactory.createStandardL2Token( L2StandardTokenFactory.createStandardL2Token(
ethers.constants.AddressZero, ethers.constants.AddressZero,
'L2ERC20', 'L2ERC20',
'ERC' 'ERC'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment