public override void SaveValues(Form f) { base.SaveValues(f); if (!(f is FOpen fo)) { return; } Script = fo.txtScript.Text; Arguments = fo.txtArguments.Text; BlockChainPath = fo.txtBlockChain.Text; TriggerType = (ETriggerType)fo.scriptType.SelectedItem; Fake = EFake.None; if (fo.cFakeWitness.Checked) { Fake |= EFake.Witness; } if (fo.cFakeStorage.Checked) { Fake |= EFake.Storage; } }
public NeoEngine(TriggerType trigger, IScriptContainer container, IScriptTable table, InteropService service, EFake fake, Fixed8 gas, bool testMode = false) : base(trigger, container, table, service, gas, testMode) { Fake = fake; LoadStorage(); }