@gala-chain/gala-core-sdk 1.2.0-beta.1 → 1.2.0-beta.2

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/dist/bridge.mjs CHANGED
@@ -2236,16 +2236,6 @@ function destinationChainIdOf(value) {
2236
2236
  /** The method a bridge-out signing failure names. */
2237
2237
  const BRIDGE_OUT_METHOD = "RequestTokenBridgeOut";
2238
2238
  /**
2239
- * The contract path whose operation a `RequestTokenBridgeOut` signs: the TOKEN contract's
2240
- * (`asset-channel_basic-asset_GalaChainToken:RequestTokenBridgeOut`). Verified on stage (2026-11-02): the
2241
- * chain refuses `...BridgeContract:RequestTokenBridgeOut` ("signed to call ...BridgeContract:RequestTokenBridgeOut,
2242
- * but the current operation is asset-channel_basic-asset_GalaChainToken:RequestTokenBridgeOut") and accepts this one.
2243
- * The table's `asset/bridge-contract` entry is right for `BridgeTokenOut` (seen live on stage:
2244
- * `asset-channel_bridge-chaincode_BridgeContract:BridgeTokenOut`, signed by GalaConnect, not by this SDK), and the grants
2245
- * embedded in it sign `asset-channel_bridge-chaincode_GalaChainToken:GrantAllowance`, which the table lacks.
2246
- */
2247
- const BRIDGE_OUT_CONTRACT_PATH = "asset/token-contract";
2248
- /**
2249
2239
  * Signs the bridge-out typed data with the app's signer. Whatever the signer throws that is not
2250
2240
  * already an SDK error (a declined or locked wallet, a message ethers cannot encode) is
2251
2241
  * `SIGNING_FAILED` (`user_rejected` or `failed`, the original as `cause`), and so is a signature
@@ -2305,7 +2295,7 @@ async function buildBridgeOutPayload(dto, config) {
2305
2295
  const message = {
2306
2296
  destinationChainId,
2307
2297
  destinationChainTxFee: sanitizeObject(sanitizedFeeObj),
2308
- dtoOperation: dtoOperationOf(BRIDGE_OUT_CONTRACT_PATH, BRIDGE_OUT_METHOD),
2298
+ dtoOperation: dtoOperationOf("asset/bridge-contract", BRIDGE_OUT_METHOD),
2309
2299
  quantity: dto.quantity,
2310
2300
  recipient: dto.recipient,
2311
2301
  tokenInstance: dto.tokenInstance,