@aurigami/sdk 1.3.2 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.3.2",
2
+ "version": "1.3.3",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -167,7 +167,9 @@ export class AirdropRead extends BlockchainEntityRead {
167
167
  public constructor(networkConnection: NetworkConnection) {
168
168
  super(networkConnection);
169
169
 
170
- this._whitelistedAddresses = new Set(AIRDROP_WHITELIST_ADDRESSES as string[]);
170
+ this._whitelistedAddresses = new Set(
171
+ (AIRDROP_WHITELIST_ADDRESSES as string[]).map(e => e.toLocaleLowerCase())
172
+ );
171
173
 
172
174
  let auTokens: any = AIRDROP_AUTOKEN_INFO;
173
175
 
@@ -197,7 +199,7 @@ export class AirdropRead extends BlockchainEntityRead {
197
199
  }
198
200
 
199
201
  public isWhitelisted(user: string): boolean {
200
- return this._whitelistedAddresses.has(user);
202
+ return this._whitelistedAddresses.has(user.toLocaleLowerCase());
201
203
  }
202
204
 
203
205
  public async hasCompletedChallenge(user: string): Promise<boolean> {