Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
EnoRage opened this issue Oct 18, 2024 · 0 comments
Open

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

EnoRage opened this issue Oct 18, 2024 · 0 comments

Comments

@EnoRage
Copy link

EnoRage commented Oct 18, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant