@xyo-network/xl1-rpc 1.15.21 → 1.15.23

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.
@@ -2181,10 +2181,15 @@ var AbstractXyoGateway = class {
2181
2181
  const chainId = await viewer.chainId();
2182
2182
  const nbf = await viewer.currentBlockNumber();
2183
2183
  const tx = await buildUnsignedTransaction(chainId, onChain, offChain, nbf, nbf + 1e3, await signer.address());
2184
- const hash = await this.addTransactionToChain(tx);
2184
+ const runner = assertEx6(connection.runner, () => "No runner available on connection");
2185
+ const signedTx = await signer.signTransaction(tx);
2186
+ const hash = await runner.broadcastTransaction([
2187
+ await PayloadBuilder5.addStorageMeta(signedTx[0]),
2188
+ await PayloadBuilder5.addStorageMeta(signedTx[1])
2189
+ ]);
2185
2190
  return [
2186
2191
  hash,
2187
- tx
2192
+ signedTx
2188
2193
  ];
2189
2194
  }
2190
2195
  async addTransactionToChain(tx) {