Skip to content

Set new Contract attributes when instantiating instead of modifying the class ones

Administrator requested to merge fix/contract-instantiation into master

We were instantiating a class from a dict to then convert it to dict again.

This line:

self.additionalBonds.append(add_bond.__dict__)

Was adding elements directly to the class attribute "additionalBonds" so at next instantiation the older asset bonds were accumulated.

Edited by Administrator

Merge request reports

Loading