File tree Expand file tree Collapse file tree
noirc_frontend/src/hir/def_map Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ pub struct CompiledContract {
3535 pub functions : Vec < ContractFunction > ,
3636
3737 /// All the events defined inside the contract scope.
38+ /// An event is a struct value that can be emitted via oracles
39+ /// by any contract function during execution.
3840 pub events : Vec < ContractEvent > ,
3941
4042 pub file_map : BTreeMap < FileId , DebugFile > ,
Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ pub struct ContractFunctionMeta {
248248 pub is_entry_point : bool ,
249249}
250250
251- /// A 'contract' in Noir source code with the given name and functions .
251+ /// A 'contract' in Noir source code with a given name, functions and events .
252252/// This is not an AST node, it is just a convenient form to return for CrateDefMap::get_all_contracts.
253253pub struct Contract {
254254 /// To keep `name` semi-unique, it is prefixed with the names of parent modules via CrateDefMap::get_module_path
You can’t perform that action at this time.
0 commit comments