@moonbeam-network/xcm-builder 1.0.0-dev.191 → 1.0.0-dev.193

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.mjs CHANGED
@@ -1925,7 +1925,6 @@ function polkadotXcm() {
1925
1925
  func,
1926
1926
  getArgs: (extrinsicFunction) => {
1927
1927
  const version = getExtrinsicArgumentVersion(extrinsicFunction);
1928
- const genesis = params.destination.key === "moonbase-stage" ? "0x64d25a5d58d8d330b8804103e6452be6258ebfd7c4f4c1294835130e75628401" : "0xe1ea3ab1d46ba8f4898b6b4b9c54ffc05282d299f89e84bd0fd08067758c9443";
1929
1928
  return [
1930
1929
  // dest
1931
1930
  {
@@ -1935,8 +1934,7 @@ function polkadotXcm() {
1935
1934
  X2: [
1936
1935
  {
1937
1936
  GlobalConsensus: {
1938
- ByGenesis: genesis
1939
- // Relay of destination ecosystem
1937
+ ByGenesis: params.destination.relayGenesisHash
1940
1938
  }
1941
1939
  },
1942
1940
  {
@@ -1995,7 +1993,6 @@ function polkadotXcm() {
1995
1993
  func,
1996
1994
  getArgs: (extrinsicFunction) => {
1997
1995
  const version = getExtrinsicArgumentVersion(extrinsicFunction);
1998
- const genesis = params.destination.key === "moonbase-stage" ? "0x64d25a5d58d8d330b8804103e6452be6258ebfd7c4f4c1294835130e75628401" : "0xe1ea3ab1d46ba8f4898b6b4b9c54ffc05282d299f89e84bd0fd08067758c9443";
1999
1996
  return [
2000
1997
  // dest
2001
1998
  {
@@ -2005,8 +2002,7 @@ function polkadotXcm() {
2005
2002
  X2: [
2006
2003
  {
2007
2004
  GlobalConsensus: {
2008
- ByGenesis: genesis
2009
- // Relay of destination ecosystem
2005
+ ByGenesis: params.destination.relayGenesisHash
2010
2006
  }
2011
2007
  },
2012
2008
  {
@@ -2035,7 +2031,7 @@ function polkadotXcm() {
2035
2031
  X3: [
2036
2032
  {
2037
2033
  GlobalConsensus: {
2038
- ByGenesis: genesis
2034
+ ByGenesis: params.destination.relayGenesisHash
2039
2035
  }
2040
2036
  },
2041
2037
  {