@cryptorubic/web3 1.8.0 → 1.8.1-alpha.solana.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cryptorubic/web3",
3
- "version": "1.8.0",
3
+ "version": "1.8.1-alpha.solana.2",
4
4
  "dependencies": {
5
5
  "@ethersproject/bignumber": "^5.8.0",
6
6
  "@mysten/sui": "^1.24.0",
@@ -34,6 +34,7 @@ class SolanaAdapterSigner extends abstract_adapter_signer_1.AbstractAdapterSigne
34
34
  const decodedData = js_base64_1.Base64.toUint8Array(params.txOptions.data);
35
35
  const tx = web3_js_1.VersionedTransaction.deserialize(decodedData);
36
36
  const signedTx = await this.wallet.signTransaction(tx);
37
+ signedTx.message.recentBlockhash = (await this.publicClient.getLatestBlockhash('confirmed')).blockhash;
37
38
  const txBase64 = js_base64_1.Base64.fromUint8Array(signedTx.serialize());
38
39
  let signature;
39
40
  if (params.txOptions?.sponsorParams) {
@@ -46,7 +47,7 @@ class SolanaAdapterSigner extends abstract_adapter_signer_1.AbstractAdapterSigne
46
47
  else {
47
48
  try {
48
49
  const simulation = await this.publicClient.simulateTransaction(signedTx, {
49
- sigVerify: true,
50
+ sigVerify: false,
50
51
  replaceRecentBlockhash: false
51
52
  });
52
53
  console.log(simulation);