Skip to content

caip-js Fails to Create AssetType with eip155:1/slip44:60 #45

Open
@EnoRage

Description

@EnoRage

caip-js Fails to Create AssetType with eip155:1/slip44:60

Description

Attempting to create an AssetType for Ethereum Mainnet using eip155:1/slip44:60 with caip-js results in an invalid assetType error.

Steps to Reproduce

  1. Install caip-js.
  2. Try to create AssetType from string (Ethereum Mainnet - eip155:1/slip44:60)
const { AssetType } = require('caip-js');

const assetType = new AssetType('eip155:1/slip44:60');

Error Encountered:

Invalid assetType provided: eip155:1/slip44:60

Expected Behavior

AssetType.fromString('eip155:1/slip44:60') should successfully create an AssetType for Ethereum Mainnet as per CAIP-19.

Actual Behavior

An error is thrown stating the assetType is invalid

caip-js Version: v1.1.1
Node.js Version: e.g.,v22.8.0

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