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 +2 -0
- package/README.md +2 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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
|
|
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: []
|