@wormhole-foundation/sdk-definitions
Advanced tools
Comparing version 0.4.0-beta.5 to 0.4.0-beta.6
@@ -16,7 +16,4 @@ "use strict"; | ||
function registerNative(platform, ctr) { | ||
if (nativeFactory.has(platform)) { | ||
console.warn("Native address type for platform %s has already registered", platform); | ||
//throw new Error(`Native address type for platform ${platform} has already registered`); | ||
return; | ||
} | ||
if (nativeFactory.has(platform)) | ||
return; //throw new Error(`Native address type for platform ${platform} has already registered`); | ||
nativeFactory.set(platform, ctr); | ||
@@ -23,0 +20,0 @@ } |
@@ -11,3 +11,3 @@ "use strict"; | ||
if (platforms.has(platform)) | ||
throw new Error(`Protocol ${platform} for protocol ${protocol} has already registered`); | ||
return; //throw new Error(`Protocol ${platform} for protocol ${protocol} has already registered`); | ||
platforms.set(platform, ctr); | ||
@@ -14,0 +14,0 @@ protocolFactory.set(protocol, platforms); |
@@ -13,7 +13,4 @@ import { chainToPlatform, platformToAddressFormat, } from "@wormhole-foundation/sdk-base"; | ||
export function registerNative(platform, ctr) { | ||
if (nativeFactory.has(platform)) { | ||
console.warn("Native address type for platform %s has already registered", platform); | ||
//throw new Error(`Native address type for platform ${platform} has already registered`); | ||
return; | ||
} | ||
if (nativeFactory.has(platform)) | ||
return; //throw new Error(`Native address type for platform ${platform} has already registered`); | ||
nativeFactory.set(platform, ctr); | ||
@@ -20,0 +17,0 @@ } |
@@ -8,3 +8,3 @@ import { chainToPlatform, isChain } from "@wormhole-foundation/sdk-base"; | ||
if (platforms.has(platform)) | ||
throw new Error(`Protocol ${platform} for protocol ${protocol} has already registered`); | ||
return; //throw new Error(`Protocol ${platform} for protocol ${protocol} has already registered`); | ||
platforms.set(platform, ctr); | ||
@@ -11,0 +11,0 @@ protocolFactory.set(protocol, platforms); |
{ | ||
"name": "@wormhole-foundation/sdk-definitions", | ||
"version": "0.4.0-beta.5", | ||
"version": "0.4.0-beta.6", | ||
"repository": { | ||
@@ -33,4 +33,4 @@ "type": "git", | ||
"@noble/hashes": "^1.3.1", | ||
"@wormhole-foundation/sdk-base": "^0.4.0-beta.5" | ||
"@wormhole-foundation/sdk-base": "^0.4.0-beta.6" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
795910
10543