From 88e003d2191ff8a5cef85f599f72651151bbe7f9 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Tue, 21 Jul 2020 14:47:44 +0300 Subject: [PATCH] core: adjust System.Runtime.GetTime interop Part of #1055. It should have AllowStates flag. --- pkg/core/interops.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/core/interops.go b/pkg/core/interops.go index 1ca854529..7ee684744 100644 --- a/pkg/core/interops.go +++ b/pkg/core/interops.go @@ -119,7 +119,7 @@ var systemInterops = []interop.Function{ {Name: "System.Runtime.GetInvocationCounter", Func: runtime.GetInvocationCounter, Price: 400}, {Name: "System.Runtime.GetScriptContainer", Func: engineGetScriptContainer, Price: 250}, {Name: "System.Runtime.GetTime", Func: runtimeGetTime, Price: 250, - AllowedTriggers: trigger.Application}, + AllowedTriggers: trigger.Application, RequiredFlags: smartcontract.AllowStates}, {Name: "System.Runtime.GetTrigger", Func: runtimeGetTrigger, Price: 250}, {Name: "System.Runtime.Log", Func: runtimeLog, Price: 1000000, RequiredFlags: smartcontract.AllowNotify}, {Name: "System.Runtime.Notify", Func: runtimeNotify, Price: 1000000, RequiredFlags: smartcontract.AllowNotify},