Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
superwunc committed Jun 17, 2024
1 parent 425c3af commit ba97fc7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,14 @@ export async function run(): Promise<void> {
if (contractAddressGroup.length > 0) {
for (let i = 0, l = contractAddressGroup.length; i < l; i++) {
const contractAddress = contractAddressGroup[i]
console.log('allContractAddress', contractAddress)
// console.log('allContractAddress', contractAddress)

Check failure on line 48 in src/main.ts

View workflow job for this annotation

GitHub Actions / Lint Codebase

Insert `·`
const response = await fetch(
`https://api.bscscan.com/api?module=contract&action=getcontractcreation&contractaddresses=${contractAddress.join(',')}&apikey=QY72EPJVK99S1WHIE5QHCCSEBTX2NFWJT3`
)
if (response.ok) {
const data: any = await response.json()

Check failure on line 53 in src/main.ts

View workflow job for this annotation

GitHub Actions / Lint Codebase

Unexpected any. Specify a different type
if (data.status === 1) {

if (data.status === '1') {
data.result.forEach((item: any) => {

Check failure on line 56 in src/main.ts

View workflow job for this annotation

GitHub Actions / Lint Codebase

Prefer for...of instead of Array.forEach

Check failure on line 56 in src/main.ts

View workflow job for this annotation

GitHub Actions / Lint Codebase

Unexpected any. Specify a different type
if (
item.contractCreator !==
Expand Down

0 comments on commit ba97fc7

Please sign in to comment.