@ape.swap/bonds-sdk 1.0.611 → 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,11 +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
|
-
confirmations:
|
|
65
|
+
confirmations: 2,
|
|
66
66
|
chainId: accountChainId,
|
|
67
67
|
hash: hash,
|
|
68
68
|
pollingInterval: 1000
|
|
69
69
|
}), isConfirming = _c.isLoading, isConfirmed = _c.isSuccess;
|
|
70
|
+
var txReceipt = useWaitForTransactionReceipt({
|
|
71
|
+
confirmations: 2,
|
|
72
|
+
chainId: accountChainId,
|
|
73
|
+
hash: hash,
|
|
74
|
+
pollingInterval: 1000
|
|
75
|
+
});
|
|
70
76
|
var _d = useState([]), bondData = _d[0], setBondData = _d[1];
|
|
71
77
|
//This is a temp solution, but we will force approval each time, and then once set we will set status here and allow
|
|
72
78
|
//user to buy
|
|
@@ -132,6 +138,7 @@ var BondModal = function (_a) {
|
|
|
132
138
|
})];
|
|
133
139
|
case 2:
|
|
134
140
|
tx = _a.sent();
|
|
141
|
+
console.log('txReceipt:', txReceipt);
|
|
135
142
|
// const receipt = useWaitForTransactionReceipt({
|
|
136
143
|
// confirmations: 4,
|
|
137
144
|
// chainId: accountChainId,
|