Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ services:
- "./config:/home/user/.arbitrum"
command: --conf.file /home/user/.arbitrum/nodeConfig.json

smart-contract-verifier:
extends:
file: ./docker-compose/services/smart-contract-verifier.yml
service: smart-contract-verifier
ports:
- "127.0.0.1:8050:8050"

das-server:
image: offchainlabs/nitro-node:v3.2.1-d81324d
entrypoint: [ "/bin/bash", "/das-server.sh" ]
Expand Down
7 changes: 3 additions & 4 deletions scripts/chargeEthOrErc20.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ethers } from 'ethers'
import { BigNumber, ethers } from 'ethers'
import { ERC20__factory } from '@arbitrum/sdk/dist/lib/abi/factories/ERC20__factory'
import fs from 'fs'

Expand Down Expand Up @@ -58,14 +58,13 @@ async function main() {
depositEthInterface,
l2Signer
)
// deposit 0.4 ETH
const tx = await contract.depositEth({
value: ethers.utils.parseEther('0.4'),
value: ethers.BigNumber.from(ethers.utils.parseEther(amount)),
})
console.log('Transaction hash on parent chain: ', tx.hash)
await tx.wait()
console.log('Transaction has been mined')
console.log('0.4 ETHs are deposited to your account')
console.log(amount + ' ETHs are deposited to your account')
} else {
const nativeTokenContract = ERC20__factory.connect(nativeToken, l2Provider)
const decimals = await nativeTokenContract.decimals()
Expand Down