Skip to content

Commit

Permalink
formatted creditcoin-js
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Frederick committed Sep 27, 2023
1 parent 8159476 commit 1373246
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions creditcoin-js/src/examples/register-address-v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { personalSignAccountId } from '../utils';
import { createAddressId, personalSignSignature } from '../extrinsics/register-address-v2';
import { Keyring, creditcoinApi } from '../index';

export async function registerAddressV2Example(
) {
export async function registerAddressV2Example() {
// Create a keyring with Alice
const creditcoinAddress = new Keyring({
type: 'sr25519',
Expand All @@ -16,7 +15,7 @@ export async function registerAddressV2Example(
} = await creditcoinApi('ws://127.0.0.1:9944');

const ethSigner = Wallet.createRandom();
const blockchain = "Ethereum";
const blockchain = 'Ethereum';

const accountId = creditcoinAddress.addressRaw;
const externalAddress = ethSigner.address;
Expand All @@ -27,7 +26,7 @@ export async function registerAddressV2Example(
const lenderRegAddr = await registerAddressV2(externalAddress, blockchain, proof, creditcoinAddress);
const addressId = createAddressId(blockchain, ethSigner.address);

await api.disconnect()
await api.disconnect();

return { lenderRegAddr, addressId }
return { lenderRegAddr, addressId };
}

0 comments on commit 1373246

Please sign in to comment.