@blockrun/clawrouter 0.12.3 → 0.12.4

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/index.js CHANGED
@@ -742,6 +742,7 @@ import {
742
742
  setTransactionMessageLifetimeUsingBlockhash,
743
743
  appendTransactionMessageInstructions,
744
744
  signTransactionMessageWithSigners,
745
+ addSignersToTransactionMessage,
745
746
  getSignatureFromTransaction,
746
747
  sendAndConfirmTransactionFactory,
747
748
  getProgramDerivedAddress,
@@ -913,7 +914,11 @@ async function sweepSolanaWallet(oldKeyBytes, newKeyBytes, rpcUrl) {
913
914
  (msg) => setTransactionMessageLifetimeUsingBlockhash(latestBlockhash, msg),
914
915
  (msg) => appendTransactionMessageInstructions([createAtaIx, ...transferIxs], msg)
915
916
  );
916
- const signedTx = await signTransactionMessageWithSigners(txMessage);
917
+ const txMessageWithSigners = addSignersToTransactionMessage(
918
+ [newSigner, oldSigner],
919
+ txMessage
920
+ );
921
+ const signedTx = await signTransactionMessageWithSigners(txMessageWithSigners);
917
922
  const txSignature = getSignatureFromTransaction(signedTx);
918
923
  const wsUrl = url.replace("https://", "wss://").replace("http://", "ws://");
919
924
  const rpcSubscriptions = createSolanaRpcSubscriptions(wsUrl);