diff --git a/contracts/generated/contract_reader_interface/instructions.go b/contracts/generated/contract_reader_interface/instructions.go index 43c01a787..434643546 100644 --- a/contracts/generated/contract_reader_interface/instructions.go +++ b/contracts/generated/contract_reader_interface/instructions.go @@ -41,6 +41,8 @@ var ( Instruction_Storeval = ag_binary.TypeID([8]byte{182, 242, 86, 70, 26, 41, 111, 133}) Instruction_Store = ag_binary.TypeID([8]byte{220, 28, 207, 235, 0, 234, 193, 246}) + + Instruction_Createevent = ag_binary.TypeID([8]byte{62, 90, 3, 197, 156, 35, 78, 229}) ) // InstructionIDToName returns the name of the instruction given its ID. @@ -60,6 +62,8 @@ func InstructionIDToName(id ag_binary.TypeID) string { return "Storeval" case Instruction_Store: return "Store" + case Instruction_Createevent: + return "Createevent" default: return "" } @@ -101,6 +105,9 @@ var InstructionImplDef = ag_binary.NewVariantDefinition( { "store", (*Store)(nil), }, + { + "createevent", (*Createevent)(nil), + }, }, ) diff --git a/contracts/programs/contract-reader-interface/src/lib.rs b/contracts/programs/contract-reader-interface/src/lib.rs index 3e0456687..d33f5427d 100644 --- a/contracts/programs/contract-reader-interface/src/lib.rs +++ b/contracts/programs/contract-reader-interface/src/lib.rs @@ -108,7 +108,7 @@ pub mod contract_reader_interface { } pub fn createevent(_ctx: Context, data: TestStructData) -> Result<()> { - emit!(TestEvent { data: data }); + emit!(TestEvent { data }); Ok(()) }