Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
9e3bff93
Unverified
Commit
9e3bff93
authored
Sep 17, 2021
by
elenadimitrova
Committed by
Kelvin Fichter
Nov 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set of batch submitter fixes
parent
2fa02522
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
9 deletions
+12
-9
batch-submitter.ts
...es/batch-submitter/src/batch-submitter/batch-submitter.ts
+2
-2
tx-batch-submitter.ts
...batch-submitter/src/batch-submitter/tx-batch-submitter.ts
+2
-2
batch-submitter.spec.ts
...ch-submitter/test/batch-submitter/batch-submitter.spec.ts
+8
-5
No files found.
packages/batch-submitter/src/batch-submitter/batch-submitter.ts
View file @
9e3bff93
...
@@ -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
,
...
...
packages/batch-submitter/src/batch-submitter/tx-batch-submitter.ts
View file @
9e3bff93
...
@@ -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
(
'
I
ChainStorageContainer
'
),
this
.
signer
.
provider
this
.
signer
.
provider
)
)
...
...
packages/batch-submitter/test/batch-submitter/batch-submitter.spec.ts
View file @
9e3bff93
...
@@ -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
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment