diff --git a/examples/node/scripts/authenticate.ts b/examples/node/scripts/authenticate.ts index 5ac89d4887..54724fd154 100644 --- a/examples/node/scripts/authenticate.ts +++ b/examples/node/scripts/authenticate.ts @@ -17,8 +17,8 @@ async function main() { } const { id, text } = await client.authentication.generateChallenge({ - profileId: ownedProfiles.items[0].id, - address, + signedBy: address, + for: ownedProfiles.items[0].id, }); const signature = await wallet.signMessage(text); diff --git a/examples/node/scripts/shared/getAuthenticatedClient.ts b/examples/node/scripts/shared/getAuthenticatedClient.ts index d7a0563594..3537110b4c 100644 --- a/examples/node/scripts/shared/getAuthenticatedClient.ts +++ b/examples/node/scripts/shared/getAuthenticatedClient.ts @@ -20,8 +20,8 @@ export async function getAuthenticatedClientFromEthersWallet(wallet: Wallet): Pr const profileId = await getOwnedProfileId(lensClient, address); const { id, text } = await lensClient.authentication.generateChallenge({ - address, - profileId, + signedBy: address, + for: profileId, }); const signature = await wallet.signMessage(text); @@ -38,8 +38,8 @@ export async function getAuthenticatedClientFromViemWalletClient(walletClient: W const profileId = await getOwnedProfileId(lensClient, address); const { id, text } = await lensClient.authentication.generateChallenge({ - address, - profileId, + signedBy: address, + for: profileId, }); const signature = await walletClient.signMessage({ account: address, message: text }); diff --git a/examples/node/scripts/shared/uploadWithBundlr.ts b/examples/node/scripts/shared/uploadWithBundlr.ts index 57d099898a..1cc3950648 100644 --- a/examples/node/scripts/shared/uploadWithBundlr.ts +++ b/examples/node/scripts/shared/uploadWithBundlr.ts @@ -8,7 +8,7 @@ export async function uploadWithBundlr(data: { [key: string]: unknown }): Promis }); const atomicBalance = await bundlr.getLoadedBalance(); - const balance = bundlr.utils.unitConverter(atomicBalance); + const balance = bundlr.utils.fromAtomic(atomicBalance); console.log(`Bundlr balance for wallet ${bundlr.address} is ${balance.toString()} MUMBAI MATIC`);