Skip to content

Commit

Permalink
docs: fix nodeUrl code typo (starknet-io#1046)
Browse files Browse the repository at this point in the history
  • Loading branch information
9oelM authored Mar 27, 2024
1 parent b16db6d commit e74ba31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/versioned_docs/version-5.24.3/guides/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ In this example, if you want to read the events recorded in the last 10 blocks,
```typescript
import { RpcProvider } from 'starknet';
const providerRPC = new RpcProvider({
nodeUrl: "{ nodeUrl: 'https://starknet-goerli.infura.io/v3/' + infuraKey }",
nodeUrl: 'https://starknet-goerli.infura.io/v3/' + infuraKey,
}); // for an Infura node on Testnet
const lastBlock = await providerRPC.getBlock('latest');
const keyFilter = [num.toHex(hash.starknetKeccak('EventPanic')), '0x8'];
Expand Down

0 comments on commit e74ba31

Please sign in to comment.