Skip to content

Commit

Permalink
chore(docs): Fix typo in faucet example (#4032)
Browse files Browse the repository at this point in the history
  • Loading branch information
nonast authored Nov 14, 2024
1 parent ac01bde commit 0bafb38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/content/references/ts-sdk/typescript/hello-iota.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Create a new `index.js` file in the root of your project with the following code

```js
import { getFullnodeUrl, IotaClient } from '@iota/iota-sdk/client';
import { getFaucetHost, requestIotaFromFaucetv1 } from '@iota/iota-sdk/faucet';
import { getFaucetHost, requestIotaFromFaucetV1 } from '@iota/iota-sdk/faucet';
import { NANOS_PER_IOTA } from '@iota/iota-sdk/utils';

// replace <YOUR_IOTA_ADDRESS> with your actual address, which is in the form 0x123...
Expand All @@ -72,7 +72,7 @@ const iotaBefore = await iotaClient.getBalance({
owner: MY_ADDRESS,
});

await requestIotaFromFaucetv1({
await requestIotaFromFaucetV1({
// use getFaucetHost to make sure you're using correct faucet address
// you can also just use the address (see IOTA TypeScript SDK Quick Start for values)
host: getFaucetHost('devnet'),
Expand Down

0 comments on commit 0bafb38

Please sign in to comment.