Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
TarikGul committed Sep 18, 2023
1 parent 0cc1f43 commit 8b1525a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/AssetsTransferApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ import { validateNumber } from './validate';
/**
* Holds open an api connection to a specified chain within the ApiPromise in order to help
* construct transactions for assets and estimating fees.
*
*
* ```ts
* import { AssetsTransferApi, constructApiPromise } from '@substrate/asset-transfer-api'
*
*
* const main = () => {
* const { api, specName, safeXcmVersion } = await constructApiPromise('wss://some_ws_url');
* const assetsApi = new AssetsTransferApi(api, specName, safeXcmVersion);
Expand Down Expand Up @@ -92,10 +92,10 @@ export class AssetsTransferApi {
/**
* Create an asset transfer transaction. This can be either locally on a systems parachain or relay chain,
* or between chains using xcm.
*
*
* ```ts
* import { TxResult } from '@substrate/asset-transfer-api'
*
*
* let callInfo: TxResult<'call'>;
* try {
* callInfo = await assetsApi.createTransferTransaction(
Expand Down Expand Up @@ -448,7 +448,7 @@ export class AssetsTransferApi {
}
/**
* Fetch estimated fee information for an extrinsic
*
*
* ```ts
* const feeInfo = assetApi.fetchFeeInfo(tx, 'call');
* console.log(feeInfo.toJSON());
Expand Down Expand Up @@ -494,7 +494,7 @@ export class AssetsTransferApi {
}
/**
* Decodes the hex of an extrinsic into a string readable format.
*
*
* ```ts
* const decodedExt = assetsApi.decodeExtrinsic(tx, 'call');
* console.log(JSON.parse(decodedExt));
Expand Down
4 changes: 2 additions & 2 deletions src/constructApiPromise.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ export interface ApiInfo {

/**
* Construct an Polkadot-js ApiPromise, and and retrieve the specName of the chain.
*
*
* ```ts
* import { constructApiPromise } from '@substrate/asset-transfer-api';
*
*
* const { api, specName, safeXcmVersion } = constructApiPromise('wss://some_ws_url');
* ```
*
Expand Down

0 comments on commit 8b1525a

Please sign in to comment.