1) Added a metadata attribute to the Interaction class to pass metadata at the interaction level.
2) Added a #writable_interactions method to ConsumerContract which returns the list of contract interactions after filtering out interactions that have write_to_pact set to false in their metadata.
1) Added a
metadata
attribute to theInteraction
class to pass metadata at the interaction level. 2) Added a#writable_interactions
method toConsumerContract
which returns the list of contract interactions after filtering out interactions that havewrite_to_pact
set to false in their metadata.