Skip to content

Commit

Permalink
simplify the event
Browse files Browse the repository at this point in the history
  • Loading branch information
rueshyna committed Nov 22, 2023
1 parent c1c8473 commit cee65a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/internal/contract.mligo
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ let resolve_proposal
let () = Conditions.ready_to_execute proposal.state in
let storage = Storage.Op.update_proposal(proposal_id, proposal, storage) in
let ops, storage = Execution.perform_operations proposal_id proposal storage in
let event = Tezos.emit "%resolve_proposal" ({ proposal_id = proposal_id ; proposal_state = proposal.state } : Event.Types.resolve_proposal) in
let archive = Tezos.emit "%archive_proposal" ({ proposal_id = proposal_id ; proposal = Bytes.pack proposal } : Event.Types.archive_proposal) in
let event = Tezos.emit "%resolve_proposal" ({ proposal_id ; proposal_state = proposal.state } : Event.Types.resolve_proposal) in
let archive = Tezos.emit "%archive_proposal" ({ proposal_id ; proposal = Bytes.pack proposal }: Event.Types.archive_proposal ) in
(event::archive::ops, storage)

let contract (action, storage : request) : result =
Expand Down

0 comments on commit cee65a3

Please sign in to comment.