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

Fails to parse an asset ID string with no tokenId #42

Open
ra-phael opened this issue Feb 16, 2024 · 0 comments
Open

Fails to parse an asset ID string with no tokenId #42

ra-phael opened this issue Feb 16, 2024 · 0 comments

Comments

@ra-phael
Copy link

ra-phael commented Feb 16, 2024

From my understanding of CAIP-19, the tokenId suffix is optional, as in the example provided for DAI under Test Cases:

# DAI Token
eip155:1/erc20:0x6b175474e89094c44da98b954eedeac495271d0f

However this test doesn't pass using that exact same string:

 it("should instantiate from string", async () => {
    const result = new AssetId(
      "eip155:1/erc20:0x6b175474e89094c44da98b954eedeac495271d0f"
    );
    assertInterface(result);
  });

image

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