Skip to content

Purify get functions #75

Description

@dohaki

Most of the getter functions in the library are not pure. They depend on which user is loaded in the state and restrict the functionality of the relay REST API.

Refactor getter functions to be pure, i.e.

// not pure
tlNetwork.trustline.get(network, counterpartyAddress)

// pure
tlNetwork.trustline.get(network, user, counterpartyAddress)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions