genlayer-js 0.9.2 → 0.9.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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
 
2
2
 
3
+ ## 0.9.4 (2025-05-20)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * remove DXP-298 code ([#85](https://github.com/yeagerai/genlayer-js/issues/85)) ([3db4cff](https://github.com/yeagerai/genlayer-js/commit/3db4cffedd1a53396d390883dcdee5d26f775d72))
9
+
10
+ ## 0.9.3 (2025-05-14)
11
+
3
12
  ## 0.9.2 (2025-05-14)
4
13
 
5
14
  ## 0.9.1 (2025-05-09)
package/dist/index.cjs CHANGED
@@ -562,9 +562,6 @@ var _sendTransaction = async ({
562
562
  }
563
563
  const serializedTransaction = await senderAccount.signTransaction(transactionRequest);
564
564
  const txHash = await client.sendRawTransaction({ serializedTransaction });
565
- if (client.chain.id === _chunkSMCXL465cjs.localnet.id) {
566
- return txHash;
567
- }
568
565
  const receipt = await publicClient.waitForTransactionReceipt({ hash: txHash });
569
566
  if (receipt.status === "reverted") {
570
567
  throw new Error("Transaction reverted");
package/dist/index.js CHANGED
@@ -562,9 +562,6 @@ var _sendTransaction = async ({
562
562
  }
563
563
  const serializedTransaction = await senderAccount.signTransaction(transactionRequest);
564
564
  const txHash = await client.sendRawTransaction({ serializedTransaction });
565
- if (client.chain.id === localnet.id) {
566
- return txHash;
567
- }
568
565
  const receipt = await publicClient.waitForTransactionReceipt({ hash: txHash });
569
566
  if (receipt.status === "reverted") {
570
567
  throw new Error("Transaction reverted");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "genlayer-js",
3
3
  "type": "module",
4
- "version": "0.9.2",
4
+ "version": "0.9.4",
5
5
  "description": "GenLayer JavaScript SDK",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -90,6 +90,7 @@ export const contractActions = (client: GenLayerClient<GenLayerChain>, publicCli
90
90
  leaderOnly = false,
91
91
  transactionHashVariant = TransactionHashVariant.LATEST_FINAL,
92
92
  } = args;
93
+
93
94
  const encodedData = [calldata.encode(makeCalldataObject(functionName, callArgs, kwargs)), leaderOnly];
94
95
  const serializedData = serialize(encodedData);
95
96
 
@@ -251,11 +252,6 @@ const _sendTransaction = async ({
251
252
 
252
253
  const txHash = await client.sendRawTransaction({serializedTransaction: serializedTransaction});
253
254
 
254
- // TODO: remove this once DXP-298 is merged
255
- if (client.chain.id === localnet.id) {
256
- return txHash;
257
- }
258
-
259
255
  const receipt = await publicClient.waitForTransactionReceipt({hash: txHash});
260
256
 
261
257
  if (receipt.status === "reverted") {
@@ -68,7 +68,6 @@ export const receiptActions = (client: GenLayerClient<GenLayerChain>, publicClie
68
68
 
69
69
  export const transactionActions = (client: GenLayerClient<GenLayerChain>, publicClient: PublicClient) => ({
70
70
  getTransaction: async ({hash}: {hash: TransactionHash}): Promise<GenLayerTransaction> => {
71
- // TODO: remove this once DXP-298 is merged
72
71
  if (client.chain.id === localnet.id) {
73
72
  const transaction = await client.getTransaction({hash});
74
73
  const localnetStatus =