koilib 2.3.0 → 2.5.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/README.md +4 -4
- package/dist/koinos.js +6025 -6110
- package/dist/koinos.min.js +1 -1
- package/dist/koinos.min.js.LICENSE.txt +1 -10
- package/lib/Contract.js +1 -1
- package/lib/Contract.js.map +1 -1
- package/lib/Provider.d.ts +7 -5
- package/lib/Provider.js +67 -16
- package/lib/Provider.js.map +1 -1
- package/lib/Signer.d.ts +6 -6
- package/lib/Signer.js +13 -14
- package/lib/Signer.js.map +1 -1
- package/lib/interface.d.ts +19 -1
- package/lib/utils.d.ts +10 -10
- package/lib/utils.js +13 -20
- package/lib/utils.js.map +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -112,8 +112,8 @@ a transaction, and read contracts.
|
|
|
112
112
|
console.log(`Transaction id ${transaction.id} submitted`);
|
|
113
113
|
|
|
114
114
|
// wait to be mined
|
|
115
|
-
const
|
|
116
|
-
console.log(`Transaction mined. Block
|
|
115
|
+
const blockNumber = await transactionResponse.wait();
|
|
116
|
+
console.log(`Transaction mined. Block number: ${blockNumber}`);
|
|
117
117
|
|
|
118
118
|
// read the balance
|
|
119
119
|
const { result } = await koin.balanceOf(signer.getAddress());
|
|
@@ -135,8 +135,8 @@ It's also possible to upload contracts. First, follow the instructions in [koino
|
|
|
135
135
|
const contract = new Contract({ signer, provider, bytecode });
|
|
136
136
|
const { transactionResponse } = await contract.deploy();
|
|
137
137
|
// wait to be mined
|
|
138
|
-
const
|
|
139
|
-
console.log(`Contract uploaded in block id ${
|
|
138
|
+
const blockNumber = await transactionResponse.wait();
|
|
139
|
+
console.log(`Contract uploaded in block id ${blockNumber}`);
|
|
140
140
|
})();
|
|
141
141
|
```
|
|
142
142
|
|