-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ae8236e
commit 4a858b2
Showing
6 changed files
with
39 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package systemSmartContracts | ||
|
||
import "github.com/multiversx/mx-chain-go/vm" | ||
|
||
type oneShardSystemVMEEICreator struct { | ||
} | ||
|
||
// NewOneShardSystemVMEEICreator creates a system vm eei creator | ||
func NewOneShardSystemVMEEICreator() *oneShardSystemVMEEICreator { | ||
return &oneShardSystemVMEEICreator{} | ||
} | ||
|
||
// CreateVmContext creates vm context for single shard chains | ||
func (vcc *oneShardSystemVMEEICreator) CreateVmContext(args VMContextArgs) (vm.ContextHandler, error) { | ||
vmCtxt, err := NewVMContext(args) | ||
if err != nil { | ||
return nil, err | ||
} | ||
|
||
return NewOneShardSystemVMEEI(vmCtxt) | ||
} | ||
|
||
// IsInterfaceNil checks if the underlying pointer is nil | ||
func (vcc *oneShardSystemVMEEICreator) IsInterfaceNil() bool { | ||
return vcc == nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.