We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab6bb8c commit 599fe52Copy full SHA for 599fe52
src/pages/Coin.tsx
@@ -88,6 +88,29 @@ export function Coin() {
88
89
if (coinRecord.coinbase) {
90
setCoin(parseCoin(coinRecord.coin, CoinType.Reward, 'xch'));
91
+
92
+ client.getPuzzleAndSolution(coinRecord.coin.coinId()).then((spend) => {
93
+ if (!spend.coinSolution) {
94
+ return;
95
+ }
96
97
+ const parsed = parseSpendBundle(
98
+ new SpendBundle(
99
+ [
100
+ new CoinSpend(
101
+ coinRecord.coin,
102
+ spend.coinSolution.puzzleReveal,
103
+ spend.coinSolution.solution,
104
+ ),
105
+ ],
106
+ Signature.infinity(),
107
108
+ false,
109
+ );
110
111
+ setCoin(parsed.coinSpends[0].coin);
112
+ setCoinSpend(parsed.coinSpends[0]);
113
+ });
114
} else {
115
Promise.all([
116
client.getCoinRecordByName(coinRecord.coin.parentCoinInfo),
0 commit comments