Skip to content

fix(docs): add missing await on provider.request() calls in README#274

Open
ygd58 wants to merge 1 commit intobase:masterfrom
ygd58:fix/readme-missing-await-provider-request
Open

fix(docs): add missing await on provider.request() calls in README#274
ygd58 wants to merge 1 commit intobase:masterfrom
ygd58:fix/readme-missing-await-provider-request

Conversation

@ygd58
Copy link
Copy Markdown

@ygd58 ygd58 commented Apr 14, 2026

Was going through the README and noticed two code examples are missing await on provider.request() calls. Since provider.request() returns a Promise, without await the const addresses variable ends up being a Promise object instead of an array of addresses. Anyone following these examples will run into unexpected behavior. Lines 176 and 184 in README.md.

@cb-heimdall
Copy link
Copy Markdown
Collaborator

cb-heimdall commented Apr 14, 2026

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

@ygd58 ygd58 force-pushed the fix/readme-missing-await-provider-request branch from e887525 to 192a1a3 Compare April 14, 2026 08:18
@ygd58
Copy link
Copy Markdown
Author

ygd58 commented Apr 18, 2026

hey @fan-zhang-sv @spencerstock can you take a look when you get a chance?

@ygd58 ygd58 force-pushed the fix/readme-missing-await-provider-request branch from 192a1a3 to 16ef6d6 Compare April 23, 2026 20:31
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

Successfully merging this pull request may close these issues.

2 participants