@ape.swap/bonds-sdk 1.0.610 → 1.0.612

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.
@@ -62,8 +62,17 @@ var BondModal = function (_a) {
62
62
  return null;
63
63
  var _b = useWriteContract(), hash = _b.data, isPending = _b.isPending, writeContract = _b.writeContract, writeContractAsync = _b.writeContractAsync;
64
64
  var _c = useWaitForTransactionReceipt({
65
- hash: hash
65
+ confirmations: 2,
66
+ chainId: accountChainId,
67
+ hash: hash,
68
+ pollingInterval: 1000
66
69
  }), isConfirming = _c.isLoading, isConfirmed = _c.isSuccess;
70
+ var txReceipt = useWaitForTransactionReceipt({
71
+ confirmations: 2,
72
+ chainId: accountChainId,
73
+ hash: hash,
74
+ pollingInterval: 1000
75
+ });
67
76
  var _d = useState([]), bondData = _d[0], setBondData = _d[1];
68
77
  //This is a temp solution, but we will force approval each time, and then once set we will set status here and allow
69
78
  //user to buy
@@ -129,6 +138,7 @@ var BondModal = function (_a) {
129
138
  })];
130
139
  case 2:
131
140
  tx = _a.sent();
141
+ console.log('txReceipt:', txReceipt);
132
142
  // const receipt = useWaitForTransactionReceipt({
133
143
  // confirmations: 4,
134
144
  // chainId: accountChainId,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Ape Bond SDK",
4
4
  "author": "Ape Bond",
5
5
  "license": "MIT",
6
- "version": "1.0.610",
6
+ "version": "1.0.612",
7
7
  "main": "dist/index.js",
8
8
  "module": "dist/index.es.js",
9
9
  "types": "dist/index.d.ts",