genlayer-js 0.1.0 → 0.1.1

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,7 @@
1
1
 
2
2
 
3
+ ## 0.1.1 (2024-10-03)
4
+
3
5
  ## 0.1.0 (2024-10-01)
4
6
 
5
7
 
package/README.md CHANGED
@@ -39,15 +39,14 @@ const transaction = await client.getTransaction({ hash: transactionHash })
39
39
  ### Readding a contract
40
40
  ```typescript
41
41
  import { simulator } from 'genlayer-js/chains';
42
- import { createClient, createAccount } from "genlayer-js";
42
+ import { createClient } from "genlayer-js";
43
43
 
44
- const account = createAccount();
45
44
  const client = createClient({
46
45
  network: simulator,
47
- account: account, // hoist the account to use it on next calls
48
46
  });
49
47
 
50
48
  const result = await client.readContract({
49
+ // account: account, Account is optional when reading from contracts
51
50
  address: contractAddress,
52
51
  functionName: 'get_complete_storage',
53
52
  args: []
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "genlayer-js",
3
3
  "type": "module",
4
- "version": "0.1.0",
4
+ "version": "0.1.1",
5
5
  "description": "GenLayer JavaScript SDK",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",