Skip to content

Inherit the appName from the generic UAL configuration instead of requiring it during ual-anchor instantiation #4

@aaroncox

Description

@aaroncox

Currently ual-anchor throws an error if you don't include a name during its instantiation.

For example:

import AnchorLinkProvider from 'eos-transit-anchorlink-provider';

const context = initAccessContext({
  appName: 'dapp_name',
  walletProviders: [AnchorLinkProvider()]
});

This will throw an error unless you also pass the name to the AnchorLinkProvider constructor, like so:

import AnchorLinkProvider from 'eos-transit-anchorlink-provider';

const context = initAccessContext({
  appName: 'dapp_name',
  walletProviders: [AnchorLinkProvider('dapp_name')]
});

Ideally the AnchorLinkProvider should just inherit the name from the appName variable within the parent configuration.

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