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);
}
Is not possible to invoke an event using
MyEvent?.Invoke
It throw
NC2001: Unsupported symbol