Skip to content

Pre and post for variable modification event should only be created when used #3

@shaunazzopardi

Description

@shaunazzopardi

Currently functions to access the previous value and current value of a variable are being created for each variable event, e.g. an event counter@() will result in the following functions being added to the smart contract:

  function LARVA_set_counter_pre (uint counter) ... {
     .....
  }
  function LARVA_set_counter_post (uint counter) ... {
     .....
  }

However this is wasteful. The code in the event condition should be analysed to only create the functions required.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions