Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add EVMEntryViaWasmdPrecompile flag #530

Merged
merged 1 commit into from
Jul 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions types/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,12 @@ type Context struct {
txMsgAccessOps map[int][]acltypes.AccessOperation

// EVM properties
evm bool // EVM transaction flag
evmNonce uint64 // EVM Transaction nonce
evmSenderAddress string // EVM Sender address
evmTxHash string // EVM TX hash
evmVmError string // EVM VM error during execution
evm bool // EVM transaction flag
evmNonce uint64 // EVM Transaction nonce
evmSenderAddress string // EVM Sender address
evmTxHash string // EVM TX hash
evmVmError string // EVM VM error during execution
evmEntryViaWasmdPrecompile bool // EVM is entered via wasmd precompile directly

msgValidator *acltypes.MsgValidator
messageIndex int // Used to track current message being processed
Expand Down Expand Up @@ -162,6 +163,10 @@ func (c Context) EVMVMError() string {
return c.evmVmError
}

func (c Context) EVMEntryViaWasmdPrecompile() bool {
return c.evmEntryViaWasmdPrecompile
}

func (c Context) PendingTxChecker() abci.PendingTxChecker {
return c.pendingTxChecker
}
Expand Down Expand Up @@ -443,6 +448,11 @@ func (c Context) WithEVMVMError(vmError string) Context {
return c
}

func (c Context) WithEVMEntryViaWasmdPrecompile(e bool) Context {
c.evmEntryViaWasmdPrecompile = e
return c
}

func (c Context) WithPendingTxChecker(checker abci.PendingTxChecker) Context {
c.pendingTxChecker = checker
return c
Expand Down
Loading