diff --git a/package.json b/package.json index 08752e8..8208bbf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@crocswap-libs/sdk", - "version": "2.0.5", + "version": "2.0.6", "description": "🛠🐊🛠 An SDK for building applications on top of CrocSwap", "author": "Ben Wolski ", "repository": "https://github.com/CrocSwap/sdk.git", diff --git a/src/croc.ts b/src/croc.ts index 499cc89..d1bf9d0 100644 --- a/src/croc.ts +++ b/src/croc.ts @@ -188,6 +188,7 @@ class TokenRepo { /* Either generates or loads a previously cached token view object. * @param tokenAddr The Ethereum address of the token contract. */ materialize (tokenAddr: string): CrocTokenView { + tokenAddr = tokenAddr.toLowerCase() let tokenView = this.tokenViews.get(tokenAddr) if (!tokenView) { tokenView = new CrocTokenView(this.context, tokenAddr)