Skip to content

Commit

Permalink
fix linting and spell checking
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaurello committed Sep 24, 2024
1 parent 5834723 commit 8945744
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 23 deletions.
10 changes: 2 additions & 8 deletions packages/builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,14 @@
"type": "git",
"url": "git+https://github.com/moonbeam-foundation/xcm-sdk.git"
},
"keywords": [
"moonbeam",
"moonriver",
"xcm"
],
"keywords": ["moonbeam", "moonriver", "xcm"],
"author": "moonbeam-foundation",
"license": "MIT",
"bugs": {
"url": "https://github.com/moonbeam-foundation/xcm-sdk/issues"
},
"homepage": "https://moonbeam-foundation.github.io/xcm-sdk/latest",
"files": [
"build"
],
"files": ["build"],
"type": "module",
"exports": "./build/index.mjs",
"types": "./build/index.d.ts",
Expand Down
8 changes: 4 additions & 4 deletions packages/builder/src/fee/FeeBuilder.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,18 +233,18 @@ export async function getFeeForXcmInstructionsAndAsset(
}
const xcmToWeight = xcmToWeightResult.asOk;

const weightToForeingAssets =
const weightToForeignAssets =
await api.call.xcmPaymentApi.queryWeightToAssetFee<
Result<u128, PolkadotError>
>(xcmToWeight, {
[XCM_VERSION]: {
...versionedAssetId,
},
});
if (!weightToForeingAssets.isOk) {
if (!weightToForeignAssets.isOk) {
throw new Error(
'There was an error trying to get the fee with the weight and asset (weightToForeingAssets)',
'There was an error trying to get the fee with the weight and asset (weightToForeignAssets)',
);
}
return weightToForeingAssets.asOk.toBigInt();
return weightToForeignAssets.asOk.toBigInt();
}
10 changes: 2 additions & 8 deletions packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,14 @@
"type": "git",
"url": "git+https://github.com/moonbeam-foundation/xcm-sdk.git"
},
"keywords": [
"moonbeam",
"moonriver",
"xcm"
],
"keywords": ["moonbeam", "moonriver", "xcm"],
"author": "moonbeam-foundation",
"license": "MIT",
"bugs": {
"url": "https://github.com/moonbeam-foundation/xcm-sdk/issues"
},
"homepage": "https://moonbeam-foundation.github.io/xcm-sdk/latest",
"files": [
"build"
],
"files": ["build"],
"type": "module",
"exports": "./build/index.mjs",
"types": "./build/index.d.ts",
Expand Down
4 changes: 1 addition & 3 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@
"url": "https://github.com/moonbeam-foundation/xcm-sdk/issues"
},
"homepage": "https://moonbeam-foundation.github.io/xcm-sdk/latest",
"files": [
"build"
],
"files": ["build"],
"type": "module",
"exports": "./build/index.mjs",
"types": "./build/index.d.ts",
Expand Down

0 comments on commit 8945744

Please sign in to comment.