Commit 1f7a3ae0 authored by Mark Tyneway's avatar Mark Tyneway Committed by Liam Horne

test: move to correct package

parent bfa00658
......@@ -12,12 +12,6 @@ describe('Fee Payment Integration Tests', async () => {
env = await OptimismEnv.new()
})
it('Should estimate gas for wETH transfer', async () => {
const amount = utils.parseEther('0.5')
const gas = await env.ovmEth.estimateGas.transfer(other, amount)
expect(gas).is.instanceof(BigNumber)
})
it('Paying a nonzero but acceptable gasPrice fee', async () => {
const amount = utils.parseEther('0.5')
......
......@@ -40,6 +40,21 @@ describe('Native ETH Integration Tests', async () => {
l2Bob = l1Bob.connect(env.l2Wallet.provider)
})
describe('estimateGas', () => {
it('Should estimate gas for ETH transfer', async () => {
const amount = utils.parseEther('0.5')
const addr = await l2Bob.getAddress()
const gas = await env.ovmEth.estimateGas.transfer(addr, amount)
expect(gas).is.instanceof(BigNumber)
})
it('Should estimate gas for ETH withdraw', async () => {
const amount = utils.parseEther('0.5')
const gas = await env.ovmEth.estimateGas.withdraw(amount)
expect(gas).is.instanceof(BigNumber)
})
})
it('deposit', async () => {
const depositAmount = 10
const preBalances = await getBalances(env)
......
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