Open
Description
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
- Install caip-js.
- 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
Labels
No labels