@oak-network/sdk
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -28,3 +28,3 @@ "use strict"; | ||
const oakApi = oakAdapter.getApi(); | ||
const { paraId, xcmInstructionNetworkType, network } = destinationChainAdapter.getChainData(); | ||
const { paraId, xcmInstructionNetworkType, xcm } = destinationChainAdapter.getChainData(); | ||
if (lodash_1.default.isUndefined(paraId)) | ||
@@ -34,4 +34,4 @@ throw new Error("chainData.paraId not set"); | ||
throw new Error("chainData.xcmInstructionNetworkType not set"); | ||
if (lodash_1.default.isUndefined(network)) | ||
throw new Error("chainData.network not set"); | ||
if (lodash_1.default.isUndefined(xcm)) | ||
throw new Error("chainData.xcm not set"); | ||
// Caluculate weight and fee for task | ||
@@ -46,3 +46,3 @@ const destination = { V3: destinationChainAdapter.getLocation() }; | ||
// Calculate derive account on Turing/OAK | ||
const options = xcmInstructionNetworkType === adapter_1.XcmInstructionNetworkType.Concrete ? { locationType: 'XcmV3MultiLocation', network } : undefined; | ||
const options = xcmInstructionNetworkType === adapter_1.XcmInstructionNetworkType.Concrete ? { locationType: 'XcmV3MultiLocation', network: xcm.network } : undefined; | ||
const deriveAccountId = oakAdapter.getDerivativeAccount((0, util_1.u8aToHex)(keyringPair.addressRaw), paraId, options); | ||
@@ -49,0 +49,0 @@ // Schedule task through proxy |
{ | ||
"name": "@oak-network/sdk", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10485