Commit 9e3bff93 authored by elenadimitrova's avatar elenadimitrova Committed by Kelvin Fichter

Set of batch submitter fixes

parent 2fa02522
...@@ -138,10 +138,10 @@ export abstract class BatchSubmitter { ...@@ -138,10 +138,10 @@ export abstract class BatchSubmitter {
await getContractFactory('Lib_AddressManager', this.signer) await getContractFactory('Lib_AddressManager', this.signer)
).attach(this.addressManagerAddress) ).attach(this.addressManagerAddress)
const sccAddress = await addressManager.getAddress( const sccAddress = await addressManager.getAddress(
'OVM_StateCommitmentChain' 'StateCommitmentChain'
) )
const ctcAddress = await addressManager.getAddress( const ctcAddress = await addressManager.getAddress(
'OVM_CanonicalTransactionChain' 'CanonicalTransactionChain'
) )
return { return {
ctcAddress, ctcAddress,
......
...@@ -573,12 +573,12 @@ export class TransactionBatchSubmitter extends BatchSubmitter { ...@@ -573,12 +573,12 @@ export class TransactionBatchSubmitter extends BatchSubmitter {
) )
const addr = await manager.getAddress( const addr = await manager.getAddress(
'OVM_ChainStorageContainer-CTC-batches' 'ChainStorageContainer-CTC-batches'
) )
const container = new Contract( const container = new Contract(
addr, addr,
getNewContractInterface('iOVM_ChainStorageContainer'), getNewContractInterface('IChainStorageContainer'),
this.signer.provider this.signer.provider
) )
......
...@@ -142,11 +142,13 @@ describe('BatchSubmitter', () => { ...@@ -142,11 +142,13 @@ describe('BatchSubmitter', () => {
'OVM_CanonicalTransactionChain' 'OVM_CanonicalTransactionChain'
) )
Factory__OVM_CanonicalTransactionChain = Factory__OVM_CanonicalTransactionChain.connect(signer)
Factory__OVM_StateCommitmentChain = await getContractFactory( Factory__OVM_StateCommitmentChain = await getContractFactory(
'OVM_StateCommitmentChain' 'OVM_StateCommitmentChain'
) )
Factory__StateCommitmentChain = Factory__StateCommitmentChain.connect(signer) Factory__OVM_StateCommitmentChain = Factory__OVM_StateCommitmentChain.connect(signer)
}) })
let OVM_CanonicalTransactionChain: CanonicalTransactionChainContract let OVM_CanonicalTransactionChain: CanonicalTransactionChainContract
...@@ -158,16 +160,17 @@ describe('BatchSubmitter', () => { ...@@ -158,16 +160,17 @@ describe('BatchSubmitter', () => {
AddressManager.address, AddressManager.address,
FORCE_INCLUSION_PERIOD_SECONDS FORCE_INCLUSION_PERIOD_SECONDS
) )
await unwrapped_OVM_CanonicalTransactionChain.init() await unwrapped_OVM_CanonicalTransactionChain.init()
await AddressManager.setAddress( await AddressManager.setAddress(
'OVM_CanonicalTransactionChain', 'CanonicalTransactionChain',
unwrapped_OVM_CanonicalTransactionChain.address unwrapped_OVM_CanonicalTransactionChain.address
) )
OVM_CanonicalTransactionChain = new CanonicalTransactionChainContract( OVM_CanonicalTransactionChain = new CanonicalTransactionChainContract(
unwrapped_OVM_CanonicalTransactionChain.address, unwrapped_OVM_CanonicalTransactionChain.address,
getContractInterface('OVM_CanonicalTransactionChain'), getContractInterface('CanonicalTransactionChain'),
sequencer sequencer
) )
...@@ -181,13 +184,13 @@ describe('BatchSubmitter', () => { ...@@ -181,13 +184,13 @@ describe('BatchSubmitter', () => {
await unwrapped_OVM_StateCommitmentChain.init() await unwrapped_OVM_StateCommitmentChain.init()
await AddressManager.setAddress( await AddressManager.setAddress(
'OVM_StateCommitmentChain', 'StateCommitmentChain',
unwrapped_OVM_StateCommitmentChain.address unwrapped_OVM_StateCommitmentChain.address
) )
OVM_StateCommitmentChain = new Contract( OVM_StateCommitmentChain = new Contract(
unwrapped_OVM_StateCommitmentChain.address, unwrapped_OVM_StateCommitmentChain.address,
getContractInterface('OVM_StateCommitmentChain'), getContractInterface('StateCommitmentChain'),
sequencer sequencer
) )
......
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