@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/dist/sdk.cjs.development.js +4 -2
- package/dist/sdk.cjs.development.js.map +1 -1
- package/dist/sdk.cjs.production.min.js +1 -1
- package/dist/sdk.cjs.production.min.js.map +1 -1
- package/dist/sdk.esm.js +4 -2
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/airdrop-lottery.ts +4 -2
package/package.json
CHANGED
package/src/airdrop-lottery.ts
CHANGED
|
@@ -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(
|
|
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> {
|