@human-protocol/sdk 1.1.7 → 1.1.8
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/kvstore.js +1 -1
- package/package.json +1 -1
- package/src/kvstore.ts +1 -1
package/dist/kvstore.js
CHANGED
|
@@ -23,7 +23,7 @@ class KVStoreClient {
|
|
|
23
23
|
* @param {NetworkData} network - The network information required to connect to the KVStore contract
|
|
24
24
|
*/
|
|
25
25
|
constructor(signerOrProvider, network) {
|
|
26
|
-
this.contract = typechain_types_1.KVStore__factory.connect(network.
|
|
26
|
+
this.contract = typechain_types_1.KVStore__factory.connect(network.kvstoreAddress, signerOrProvider);
|
|
27
27
|
this.signerOrProvider = signerOrProvider;
|
|
28
28
|
}
|
|
29
29
|
/**
|
package/package.json
CHANGED
package/src/kvstore.ts
CHANGED
|
@@ -30,7 +30,7 @@ export class KVStoreClient {
|
|
|
30
30
|
*/
|
|
31
31
|
constructor(signerOrProvider: Signer | Provider, network: NetworkData) {
|
|
32
32
|
this.contract = KVStore__factory.connect(
|
|
33
|
-
network.
|
|
33
|
+
network.kvstoreAddress,
|
|
34
34
|
signerOrProvider
|
|
35
35
|
);
|
|
36
36
|
this.signerOrProvider = signerOrProvider;
|