Commit 13827deb authored by Kelvin Fichter's avatar Kelvin Fichter

Got tests running

parent a7bd01a8
...@@ -8,7 +8,7 @@ import { ...@@ -8,7 +8,7 @@ import {
usePlugin('@nomiclabs/buidler-ethers') usePlugin('@nomiclabs/buidler-ethers')
usePlugin('@nomiclabs/buidler-waffle') usePlugin('@nomiclabs/buidler-waffle')
import '@eth-optimism/smock/src/buidler-plugins/compiler-storage-layout' import '@eth-optimism/smock/build/src/buidler-plugins/compiler-storage-layout'
const config: BuidlerConfig = { const config: BuidlerConfig = {
networks: { networks: {
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
"clean": "rm -rf ./artifacts ./build ./cache" "clean": "rm -rf ./artifacts ./build ./cache"
}, },
"devDependencies": { "devDependencies": {
"@eth-optimism/smock": "^0.0.1", "@eth-optimism/smock": "^0.0.2",
"@nomiclabs/buidler": "^1.4.4", "@nomiclabs/buidler": "^1.4.4",
"@nomiclabs/buidler-ethers": "^2.0.0", "@nomiclabs/buidler-ethers": "^2.0.0",
"@nomiclabs/buidler-waffle": "^2.0.0", "@nomiclabs/buidler-waffle": "^2.0.0",
......
...@@ -11,6 +11,8 @@ import { ...@@ -11,6 +11,8 @@ import {
setProxyTarget, setProxyTarget,
NON_NULL_BYTES32, NON_NULL_BYTES32,
ZERO_ADDRESS, ZERO_ADDRESS,
toHexString32,
getEthTime,
} from '../../../helpers' } from '../../../helpers'
import { keccak256 } from 'ethers/lib/utils' import { keccak256 } from 'ethers/lib/utils'
...@@ -112,6 +114,7 @@ describe('OVM_StateCommitmentChain', () => { ...@@ -112,6 +114,7 @@ describe('OVM_StateCommitmentChain', () => {
batch.length batch.length
) )
await OVM_StateCommitmentChain.appendStateBatch(batch) await OVM_StateCommitmentChain.appendStateBatch(batch)
batchHeader.extraData = toHexString32(await getEthTime(ethers.provider))
}) })
describe('when the sender is not the OVM_FraudVerifier', () => { describe('when the sender is not the OVM_FraudVerifier', () => {
......
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