Skip to content

Commit

Permalink
fixes after merge 3
Browse files Browse the repository at this point in the history
  • Loading branch information
axenteoctavian committed May 15, 2024
1 parent 61bb52f commit 041f166
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions testscommon/genesisMocks/runTypeComponentsStub.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import (
"github.com/multiversx/mx-chain-go/testscommon/enableEpochsHandlerMock"
"github.com/multiversx/mx-chain-go/testscommon/hashingMocks"
"github.com/multiversx/mx-chain-go/testscommon/marshallerMock"
"github.com/multiversx/mx-chain-go/testscommon/vmContext"
"github.com/multiversx/mx-chain-go/vm/systemSmartContracts"
)

// RunTypeComponentsStub -
Expand All @@ -24,6 +26,7 @@ type RunTypeComponentsStub struct {
SCProcessorFactory scrCommon.SCProcessorCreator
AccountParser genesis.AccountsParser
AccountCreator state.AccountFactory
VMContextCreatorHandler systemSmartContracts.VMContextCreatorHandler
ShardCoordinatorFactory sharding.ShardCoordinatorFactory
TxPreProcessorFactory preprocess.TxPreProcessorCreator
}
Expand All @@ -47,6 +50,7 @@ func NewRunTypeComponentsStub() *RunTypeComponentsStub {
SCProcessorFactory: scProcessorCreator,
AccountParser: &AccountsParserStub{},
AccountCreator: accountsCreator,
VMContextCreatorHandler: systemSmartContracts.NewVMContextCreator(),
ShardCoordinatorFactory: sharding.NewMultiShardCoordinatorFactory(),
TxPreProcessorFactory: preprocess.NewTxPreProcessorCreator(),
}
Expand Down Expand Up @@ -76,6 +80,7 @@ func NewSovereignRunTypeComponentsStub() *RunTypeComponentsStub {
SCProcessorFactory: scProcessorCreator,
AccountParser: &AccountsParserStub{},
AccountCreator: accountsCreator,
VMContextCreatorHandler: &vmContext.VMContextCreatorStub{},
ShardCoordinatorFactory: sharding.NewSovereignShardCoordinatorFactory(),
TxPreProcessorFactory: preprocess.NewSovereignTxPreProcessorCreator(),
}
Expand Down Expand Up @@ -111,6 +116,11 @@ func (r *RunTypeComponentsStub) AccountsCreator() state.AccountFactory {
return r.AccountCreator
}

// VMContextCreator -
func (r *RunTypeComponentsStub) VMContextCreator() systemSmartContracts.VMContextCreatorHandler {
return r.VMContextCreatorHandler
}

// ShardCoordinatorCreator -
func (r *RunTypeComponentsStub) ShardCoordinatorCreator() sharding.ShardCoordinatorFactory {
return r.ShardCoordinatorFactory
Expand Down

0 comments on commit 041f166

Please sign in to comment.