diff --git a/pkg/vm/vm.go b/pkg/vm/vm.go index 1e4f88df7..3a348d530 100644 --- a/pkg/vm/vm.go +++ b/pkg/vm/vm.go @@ -262,7 +262,7 @@ func (v *VM) LoadFileWithFlags(path string, f callflag.CallFlag) error { if err != nil { return err } - v.Load(nef.Script) + v.LoadWithFlags(nef.Script, f) return nil }