@pushchain/core 0.1.19 → 0.1.20

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushchain/core",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "dependencies": {
5
5
  "@bufbuild/protobuf": "^2.0.0",
6
6
  "@coral-xyz/anchor": "^0.31.0",
@@ -249,7 +249,7 @@ class EvmClient {
249
249
  * @param pollIntervalMs - How often to check (default: 4000ms)
250
250
  */
251
251
  waitForConfirmations(_a) {
252
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ txHash, confirmations = 2, pollIntervalMs = 4000, }) {
252
+ return tslib_1.__awaiter(this, arguments, void 0, function* ({ txHash, confirmations = 0, pollIntervalMs = 4000, }) {
253
253
  const receipt = yield this.publicClient.waitForTransactionReceipt({
254
254
  hash: txHash,
255
255
  });
@@ -187,7 +187,7 @@ class SvmClient {
187
187
  * @param timeoutMs - Max wait time in milliseconds (default: 90_000)
188
188
  */
189
189
  waitForConfirmations(_a) {
190
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ txSignature, confirmations = 2, timeoutMs = 90000, }) {
190
+ return tslib_1.__awaiter(this, arguments, void 0, function* ({ txSignature, confirmations = 0, timeoutMs = 90000, }) {
191
191
  return this.executeWithFallback((connection) => tslib_1.__awaiter(this, void 0, void 0, function* () {
192
192
  const start = Date.now();
193
193
  while (Date.now() - start < timeoutMs) {