-
Notifications
You must be signed in to change notification settings - Fork 103
Closed
Description
Is not possible to invoke an event using MyEvent?.Invoke
public class Contract_Event : SmartContract.Framework.SmartContract
{
[DisplayName("transfer")]
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
public static event Action<byte[], byte[], BigInteger> Transferred;
#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
public static void test()
{
Transferred?.Invoke(new byte[] { 1, 2, 3 }, new byte[] { 4, 5, 6 }, 7);
}It throw NC2001: Unsupported symbol
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels