vm: make LoadFileWithFlags actually load with flags provided

This commit is contained in:
Anna Shaleva 2022-10-11 15:01:54 +03:00
parent d09a0c18a7
commit 7db9258104

View file

@ -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
}