good morning!!!!

Skip to content
Snippets Groups Projects
Commit ebf4408d authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

Decrement depth

parent f2f65c1a
No related branches found
No related tags found
No related merge requests found
......@@ -5,8 +5,8 @@ import (
"math/big"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/crypto"
)
type Vm struct {
......@@ -34,6 +34,8 @@ func New(env Environment) *Vm {
func (self *Vm) Run(context *Context, callData []byte) (ret []byte, err error) {
self.env.SetDepth(self.env.Depth() + 1)
defer self.env.SetDepth(self.env.Depth() - 1)
var (
caller = context.caller
code = context.Code
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment