vm: use Application trigger by default

Don't mess with System, it's too powerful to be the default.
This commit is contained in:
Roman Khimov 2020-10-29 19:11:47 +03:00
parent 2924ecd453
commit 2522271161

View file

@ -87,7 +87,7 @@ type VM struct {
// New returns a new VM object ready to load AVM bytecode scripts.
func New() *VM {
return NewWithTrigger(trigger.System)
return NewWithTrigger(trigger.Application)
}
// NewWithTrigger returns a new VM for executions triggered by t.