@wormhole-foundation/sdk-connect
Advanced tools
Comparing version 0.7.3-beta.0 to 0.8.0-beta.0
@@ -325,2 +325,5 @@ "use strict"; | ||
} | ||
if (srcChain.chain === 'Aptos') { | ||
lookup.address = new sdk_definitions_1.UniversalAddress(sdk_base_1.encoding.hex.encode((0, sdk_definitions_1.sha3_256)(lookup.address.toString()), true)); | ||
} | ||
// otherwise, figure out what the token address representing the wormhole-wrapped token we're transferring | ||
@@ -327,0 +330,0 @@ const dstTb = await dstChain.getTokenBridge(); |
import { amount, encoding, toChain as toChainName } from "@wormhole-foundation/sdk-base"; | ||
import { TokenBridge, deserialize, isNative, isTokenId, isTokenTransferDetails, isTransactionIdentifier, isWormholeMessageId, serialize, toNative, toUniversal, universalAddress, } from "@wormhole-foundation/sdk-definitions"; | ||
import { TokenBridge, deserialize, isNative, isTokenId, isTokenTransferDetails, isTransactionIdentifier, isWormholeMessageId, serialize, toNative, toUniversal, universalAddress, UniversalAddress, sha3_256, } from "@wormhole-foundation/sdk-definitions"; | ||
import { signSendWait } from "../../common.js"; | ||
@@ -321,2 +321,5 @@ import { DEFAULT_TASK_TIMEOUT } from "../../config.js"; | ||
} | ||
if (srcChain.chain === 'Aptos') { | ||
lookup.address = new UniversalAddress(encoding.hex.encode(sha3_256(lookup.address.toString()), true)); | ||
} | ||
// otherwise, figure out what the token address representing the wormhole-wrapped token we're transferring | ||
@@ -323,0 +326,0 @@ const dstTb = await dstChain.getTokenBridge(); |
{ | ||
"name": "@wormhole-foundation/sdk-connect", | ||
"version": "0.7.3-beta.0", | ||
"version": "0.8.0-beta.0", | ||
"repository": { | ||
@@ -101,6 +101,6 @@ "type": "git", | ||
"axios": "^1.4.0", | ||
"@wormhole-foundation/sdk-base": "0.7.3-beta.0", | ||
"@wormhole-foundation/sdk-definitions": "0.7.3-beta.0" | ||
"@wormhole-foundation/sdk-base": "0.8.0-beta.0", | ||
"@wormhole-foundation/sdk-definitions": "0.8.0-beta.0" | ||
}, | ||
"type": "module" | ||
} |
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
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
806352
8903
+ Added@wormhole-foundation/sdk-base@0.8.0-beta.0(transitive)
+ Added@wormhole-foundation/sdk-definitions@0.8.0-beta.0(transitive)
- Removed@wormhole-foundation/sdk-base@0.7.3-beta.0(transitive)
- Removed@wormhole-foundation/sdk-definitions@0.7.3-beta.0(transitive)