Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
brtkx committed Oct 15, 2024
1 parent 5ea3124 commit ac5b73c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/lib/assetBridger/erc20Bridger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ import { defaultAbiCoder } from 'ethers/lib/utils'
import { OmitTyped, RequiredPick } from '../utils/types'
import { RetryableDataTools } from '../dataEntities/retryableData'
import { EventArgs } from '../dataEntities/event'
import { ParentToChildMessageGasParams } from '../message/ParentToChildMessageCreator'
import {
getNativeTokenDecimals,
isArbitrumChain,
scaleToNativeTokenDecimals,
} from '../utils/lib'
import { ParentToChildMessageGasParams } from '../message/ParentToChildMessageCreator'
import { L2ERC20Gateway__factory } from '../abi/factories/L2ERC20Gateway__factory'
import { getErc20ParentAddressFromParentToChildTxRequest } from '../utils/calldata'

Expand Down Expand Up @@ -1128,7 +1128,7 @@ export class AdminErc20Bridger extends Erc20Bridger {
const data = parentToken.interface.encodeFunctionData(
'registerTokenOnL2',
[
parentTokenAddress,
childTokenAddress,
setTokenGas.maxSubmissionCost,
setGatewayGas.maxSubmissionCost,
setTokenGas.gasLimit,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/message/ParentToChildMessageGasEstimator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ export class ParentToChildMessageGasEstimator {
childNetwork,
})

// estimate the l1 gas price
// estimate the child gas price
const maxFeePerGasPromise = this.estimateMaxFeePerGas(options?.maxFeePerGas)

// estimate the submission fee
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ import {
} from '../testHelpers'

import { describeOnlyWhenCustomGasToken } from './mochaExtensions'
import { getNativeTokenDecimals } from '../../../src/lib/utils/lib'
import { ChildToParentMessageStatus } from '../../../src'
import { ChildToParentMessage } from '../../../src/lib/message/ChildToParentMessage'
import { getNativeTokenDecimals } from '../../../src/lib/utils/lib'

dotenv.config()

Expand Down
8 changes: 0 additions & 8 deletions tests/integration/eth.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,7 @@ describe('Ether', async () => {
childSigner.provider!
)

const l1ToL2Messages = await rec.getEthDeposits(childSigner.provider!)
expect(l1ToL2Messages.length).to.eq(1, 'failed to find 1 l1 to l2 message')
const l1ToL2Message = l1ToL2Messages[0]

const walletAddress = await parentSigner.getAddress()
expect(l1ToL2Message.to).to.eq(walletAddress, 'message inputs value error')
expect(l1ToL2Message.value.toString(), 'message inputs value error').to.eq(
parseEther(amount).toString()
)

const parentToChildMessages = await rec.getEthDeposits(
childSigner.provider!
Expand Down

0 comments on commit ac5b73c

Please sign in to comment.