-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix @celo/connect README code example #144
Conversation
|
@nicolasbrugneaux I'm looking for the lines that set the developer-tooling/packages/sdk/connect/src/connection.ts Lines 62 to 75 in 0ad9c01
Can you help me find it again? |
Ah my bad, it's here developer-tooling/packages/sdk/connect/src/connection.ts Lines 77 to 93 in 0ad9c01
|
Description
Fixes the code example in the
@celo/connect
README.const web3 = new Web3("YOUR_RPC_URL") const connection = new Connection(web3) - connection.setProvider()
connection.setProvider()
doesn't need to be called explicitly with aCeloProvider
, becauseconnection
is already configured with aCeloProvider
in the constructor:developer-tooling/packages/sdk/connect/src/connection.ts
Lines 77 to 93 in 0ad9c01
Related
Tested
Docs only change
Backwards compatibility
Yes
Documentation
Yes