@xyo-network/xl1-protocol-sdk 1.23.13 → 1.23.14
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/neutral/index.mjs +11 -4
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/simple/gateway/SimpleXyoGatewayRunner.d.ts +2 -2
- package/dist/neutral/simple/gateway/SimpleXyoGatewayRunner.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/simple/gateway/SimpleXyoGatewayRunner.ts +26 -8
package/dist/neutral/index.mjs
CHANGED
|
@@ -4651,6 +4651,7 @@ import {
|
|
|
4651
4651
|
import { PayloadBuilder as PayloadBuilder19 } from "@xyo-network/payload-builder";
|
|
4652
4652
|
import {
|
|
4653
4653
|
asXL1BlockNumber as asXL1BlockNumber9,
|
|
4654
|
+
isSignedHydratedTransaction,
|
|
4654
4655
|
TransferSchema as TransferSchema3,
|
|
4655
4656
|
XyoConnectionMoniker as XyoConnectionMoniker2,
|
|
4656
4657
|
XyoGatewayMoniker as XyoGatewayMoniker2,
|
|
@@ -4692,11 +4693,17 @@ var SimpleXyoGatewayRunner = class _SimpleXyoGatewayRunner extends AbstractCreat
|
|
|
4692
4693
|
const connection = this.connection;
|
|
4693
4694
|
const signer = this.signer;
|
|
4694
4695
|
const runner = assertEx38(connection.runner, () => "No runner available on connection");
|
|
4695
|
-
|
|
4696
|
+
let signedTx;
|
|
4697
|
+
if (isSignedHydratedTransaction(tx)) {
|
|
4698
|
+
const [bw, payloads] = tx;
|
|
4699
|
+
const hashedBw = await PayloadBuilder19.addHashMeta(bw);
|
|
4700
|
+
const hashedPayloads = await PayloadBuilder19.addHashMeta(payloads);
|
|
4701
|
+
signedTx = [hashedBw, hashedPayloads];
|
|
4702
|
+
} else {
|
|
4703
|
+
signedTx = await signer.signTransaction(tx);
|
|
4704
|
+
}
|
|
4696
4705
|
await this.addPayloadsToDataLakes([...signedTx[1], ...offChain ?? [], signedTx[0]]);
|
|
4697
|
-
return [await runner.broadcastTransaction(
|
|
4698
|
-
[signedTx[0], signedTx[1]]
|
|
4699
|
-
), signedTx];
|
|
4706
|
+
return [await runner.broadcastTransaction([signedTx[0], signedTx[1]]), signedTx];
|
|
4700
4707
|
}
|
|
4701
4708
|
async confirmSubmittedTransaction(txHash, options) {
|
|
4702
4709
|
return await confirmSubmittedTransaction(
|