If you'll try to do the following:
cryptocurrency_module = ModuleManager.import_service_module(cryptocurrency_service_name, 'service')
helpers_module = ModuleManager.import_main_module('helpers')
transfer_1 = cryptocurrency_module.Transfer()
transfer_1.to.CopyFrom(helpers_module.PublicKey(data=some_public_key))
You'll get an exception, because cryptocurrency_module won't recognize helpers from main.
Instead you should do the following:
cryptocurrency_module = ModuleManager.import_service_module(cryptocurrency_service_name, 'service')
helpers_module = ModuleManager.import_service_module(cryptocurrency_service_name, 'helpers')
transfer_1 = cryptocurrency_module.Transfer()
transfer_1.to.CopyFrom(helpers_module.PublicKey(data=some_public_key))
Then everything works like a charm.
However, reasons for such a behavior should be investigated and, if possible, fixed.
If you'll try to do the following:
You'll get an exception, because cryptocurrency_module won't recognize helpers from main.
Instead you should do the following:
Then everything works like a charm.
However, reasons for such a behavior should be investigated and, if possible, fixed.