Skip to content

Commit e74ba31

Browse files
authored
docs: fix nodeUrl code typo (#1046)
1 parent b16db6d commit e74ba31

File tree

1 file changed

+1
-1
lines changed
  • www/versioned_docs/version-5.24.3/guides

1 file changed

+1
-1
lines changed

www/versioned_docs/version-5.24.3/guides/events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ In this example, if you want to read the events recorded in the last 10 blocks,
120120
```typescript
121121
import { RpcProvider } from 'starknet';
122122
const providerRPC = new RpcProvider({
123-
nodeUrl: "{ nodeUrl: 'https://starknet-goerli.infura.io/v3/' + infuraKey }",
123+
nodeUrl: 'https://starknet-goerli.infura.io/v3/' + infuraKey,
124124
}); // for an Infura node on Testnet
125125
const lastBlock = await providerRPC.getBlock('latest');
126126
const keyFilter = [num.toHex(hash.starknetKeccak('EventPanic')), '0x8'];

0 commit comments

Comments
 (0)