Skip to content

Improve BlockchainInstance class usage #151

@Algruun

Description

@Algruun

In such classes like ProposalBuilder, TransactionBuilder we can see usage of BlockchainInstance in such way
BlockchainInstance.__init__(self, **kwargs)
But it's not pythonic way, there are a lot of warnings - from Expected type 'BlockchainInstance', got 'TransactionBuilder' instead to Unresolved attribute reference 'blockchain' for class 'TransactionBuilder'.
I suggest inherit from class BlockchainInstance instead of using it in this way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions