Skip to content

fix(internal): Refactor multiassets creation, and xcm types #680

fix(internal): Refactor multiassets creation, and xcm types

fix(internal): Refactor multiassets creation, and xcm types #680

Triggered via pull request October 25, 2023 16:30
Status Failure
Total duration 2m 32s
Artifacts

pr.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 13 warnings
lint: src/AssetTransferApi.spec.ts#L658
Replace `"{\"args\":{\"dest\":{\"V3\":{\"parents\":\"1\",\"interior\":{\"X1\":{\"Parachain\":\"2,000\"}}}},\"beneficiary\":{\"V3\":{\"parents\":\"0\",\"interior\":{\"X1\":{\"AccountId32\":{\"network\":null,\"id\":\"0xf5d5714c084c112843aca74f8c498da06cc5a2d63153b825189baa51043b1f0b\"}}}}},\"assets\":{\"V3\":[{\"id\":{\"Concrete\":{\"parents\":\"1\",\"interior\":\"Here\"}},\"fun\":{\"Fungible\":\"30,000,000,000,000\"}},{\"id\":{\"Concrete\":{\"parents\":\"0\",\"interior\":{\"X2\":[{\"PalletInstance\":\"50\"},{\"GeneralIndex\":\"11\"}]}}},\"fun\":{\"Fungible\":\"10,000,000,000,000\"}}]},\"fee_asset_item\":\"1\",\"weight_limit\":{\"Limited\":{\"refTime\":\"1,000\",\"proofSize\":\"1,000\"}}},\"method\":\"limitedReserveTransferAssets\",\"section\":\"polkadotXcm\"}"` with `↹'{"args":{"dest":{"V3":{"parents":"1","interior":{"X1":{"Parachain":"2,000"}}}},"beneficiary":{"V3":{"parents":"0","interior":{"X1":{"AccountId32":{"network":null,"id":"0xf5d5714c084c112843aca74f8c498da06cc5a2d63153b825189baa51043b1f0b"}}}}},"assets":{"V3":[{"id":{"Concrete":{"parents":"1","interior":"Here"}},"fun":{"Fungible":"30,000,000,000,000"}},{"id":{"Concrete":{"parents":"0","interior":{"X2":[{"PalletInstance":"50"},{"GeneralIndex":"11"}]}}},"fun":{"Fungible":"10,000,000,000,000"}}]},"fee_asset_item":"1","weight_limit":{"Limited":{"refTime":"1,000","proofSize":"1,000"}}},"method":"limitedReserveTransferAssets","section":"polkadotXcm"}'`
lint: src/AssetTransferApi.spec.ts#L680
Replace `"{\"args\":{\"dest\":{\"V3\":{\"parents\":\"1\",\"interior\":{\"X1\":{\"Parachain\":\"2,000\"}}}},\"beneficiary\":{\"V3\":{\"parents\":\"0\",\"interior\":{\"X1\":{\"AccountId32\":{\"network\":null,\"id\":\"0xf5d5714c084c112843aca74f8c498da06cc5a2d63153b825189baa51043b1f0b\"}}}}},\"assets\":{\"V3\":[{\"id\":{\"Concrete\":{\"parents\":\"1\",\"interior\":\"Here\"}},\"fun\":{\"Fungible\":\"100\"}},{\"id\":{\"Concrete\":{\"parents\":\"0\",\"interior\":{\"X2\":[{\"PalletInstance\":\"50\"},{\"GeneralIndex\":\"10\"}]}}},\"fun\":{\"Fungible\":\"2,000\"}}]},\"fee_asset_item\":\"1\"},\"method\":\"reserveTransferAssets\",\"section\":\"polkadotXcm\"}"` with `↹'{"args":{"dest":{"V3":{"parents":"1","interior":{"X1":{"Parachain":"2,000"}}}},"beneficiary":{"V3":{"parents":"0","interior":{"X1":{"AccountId32":{"network":null,"id":"0xf5d5714c084c112843aca74f8c498da06cc5a2d63153b825189baa51043b1f0b"}}}}},"assets":{"V3":[{"id":{"Concrete":{"parents":"1","interior":"Here"}},"fun":{"Fungible":"100"}},{"id":{"Concrete":{"parents":"0","interior":{"X2":[{"PalletInstance":"50"},{"GeneralIndex":"10"}]}}},"fun":{"Fungible":"2,000"}}]},"fee_asset_item":"1"},"method":"reserveTransferAssets","section":"polkadotXcm"}'`
lint: src/createCalls/foreignAssets/transfer.spec.ts#L3
Run autofix to sort these imports!
lint: src/createCalls/foreignAssets/transferKeepAlive.spec.ts#L3
Run autofix to sort these imports!
build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
lint: src/createXcmTypes/util/sortMultiAssetsAscending.ts#L66
Forbidden non-null assertion
lint: src/createXcmTypes/util/sortMultiAssetsAscending.ts#L67
Forbidden non-null assertion
lint: src/createXcmTypes/util/sortMultiAssetsAscending.ts#L95
Forbidden non-null assertion
lint: src/createXcmTypes/util/sortMultiAssetsAscending.ts#L95
Forbidden non-null assertion
lint: src/createXcmTypes/util/sortMultiAssetsAscending.ts#L98
Forbidden non-null assertion
lint: src/createXcmTypes/util/sortMultiAssetsAscending.ts#L98
Forbidden non-null assertion
lint: src/createXcmTypes/util/sortMultiAssetsAscending.ts#L101
Forbidden non-null assertion
lint: src/createXcmTypes/util/sortMultiAssetsAscending.ts#L101
Forbidden non-null assertion
lint: src/createXcmTypes/util/sortMultiAssetsAscending.ts#L104
Forbidden non-null assertion
lint: src/createXcmTypes/util/sortMultiAssetsAscending.ts#L104
Forbidden non-null assertion
tests
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.