aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm/errors.go
diff options
context:
space:
mode:
authorGuillaume Ballet <gballet@gmail.com>2018-07-25 20:56:39 +0800
committerGitHub <noreply@github.com>2018-07-25 20:56:39 +0800
commit7abedf9bbb725da8d610762d051af43085be1cda (patch)
tree7640e475868c575115cbcfde8bddb7b4484eee20 /core/vm/errors.go
parent27a278e6e35836999ac8e4d9a19c406407db8ae5 (diff)
downloaddexon-7abedf9bbb725da8d610762d051af43085be1cda.tar
dexon-7abedf9bbb725da8d610762d051af43085be1cda.tar.gz
dexon-7abedf9bbb725da8d610762d051af43085be1cda.tar.bz2
dexon-7abedf9bbb725da8d610762d051af43085be1cda.tar.lz
dexon-7abedf9bbb725da8d610762d051af43085be1cda.tar.xz
dexon-7abedf9bbb725da8d610762d051af43085be1cda.tar.zst
dexon-7abedf9bbb725da8d610762d051af43085be1cda.zip
core/vm: support for multiple interpreters (#17093)
- Define an Interpreter interface - One contract can call contracts from other interpreter types. - Pass the interpreter to the operands instead of the evm. This is meant to prevent type assertions in operands.
Diffstat (limited to 'core/vm/errors.go')
-rw-r--r--core/vm/errors.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/vm/errors.go b/core/vm/errors.go
index ea33f13f3..7f88f324e 100644
--- a/core/vm/errors.go
+++ b/core/vm/errors.go
@@ -26,4 +26,5 @@ var (
ErrTraceLimitReached = errors.New("the number of logs reached the specified limit")
ErrInsufficientBalance = errors.New("insufficient balance for transfer")
ErrContractAddressCollision = errors.New("contract address collision")
+ ErrNoCompatibleInterpreter = errors.New("no compatible interpreter")
)