From abd53e85771a332ad78e670d077fcd50b7c8bfc1 Mon Sep 17 00:00:00 2001 From: Shargon Date: Tue, 25 Jan 2022 10:11:51 +0100 Subject: [PATCH] Change callFlags (#2653) --- src/neo/SmartContract/Native/ContractManagement.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/neo/SmartContract/Native/ContractManagement.cs b/src/neo/SmartContract/Native/ContractManagement.cs index 02af411fa0..351da9b2eb 100644 --- a/src/neo/SmartContract/Native/ContractManagement.cs +++ b/src/neo/SmartContract/Native/ContractManagement.cs @@ -154,13 +154,13 @@ public IEnumerable ListContracts(DataCache snapshot) return snapshot.Find(listContractsPrefix).Select(kvp => kvp.Value.GetInteroperable()); } - [ContractMethod(RequiredCallFlags = CallFlags.States | CallFlags.AllowNotify)] + [ContractMethod(RequiredCallFlags = CallFlags.All)] private ContractTask Deploy(ApplicationEngine engine, byte[] nefFile, byte[] manifest) { return Deploy(engine, nefFile, manifest, StackItem.Null); } - [ContractMethod(RequiredCallFlags = CallFlags.States | CallFlags.AllowNotify)] + [ContractMethod(RequiredCallFlags = CallFlags.All)] private async ContractTask Deploy(ApplicationEngine engine, byte[] nefFile, byte[] manifest, StackItem data) { if (engine.ScriptContainer is not Transaction tx) @@ -200,13 +200,13 @@ private async ContractTask Deploy(ApplicationEngine engine, byte[ return contract; } - [ContractMethod(RequiredCallFlags = CallFlags.States | CallFlags.AllowNotify)] + [ContractMethod(RequiredCallFlags = CallFlags.All)] private ContractTask Update(ApplicationEngine engine, byte[] nefFile, byte[] manifest) { return Update(engine, nefFile, manifest, StackItem.Null); } - [ContractMethod(RequiredCallFlags = CallFlags.States | CallFlags.AllowNotify)] + [ContractMethod(RequiredCallFlags = CallFlags.All)] private ContractTask Update(ApplicationEngine engine, byte[] nefFile, byte[] manifest, StackItem data) { if (nefFile is null && manifest is null) throw new ArgumentException();