kaleido-io / kaleido-iden3-samples

Sample code for using the iden3 protocol to issue verifiable claims
Apache License 2.0
6 stars 4 forks source link

Pass network arg through to the various managers #48

Closed nedgar closed 1 year ago

nedgar commented 1 year ago

This passes through the --network command line arg from "main" exec function to the IdentityManager, CredentialManager etc. Their constructors are changed to make the network a required arg, with the default, kaleido, determined in one spot.

Plus some minor cleanup if imports / requires etc.

FYI @jimthematrix

nedgar commented 1 year ago

For context, I hit some pain points when adding a mumbai network to the config.

nedgar commented 1 year ago

Another option would be to look up the network config once and pass that through.