From 7db9258104b3ec64eb9ec4f86f1fa8a95aa68843 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Tue, 11 Oct 2022 15:01:54 +0300 Subject: [PATCH] vm: make LoadFileWithFlags actually load with flags provided --- pkg/vm/vm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }