Skip to content

Commit

Permalink
Merge pull request #10 from ZeusLN/main
Browse files Browse the repository at this point in the history
[Releases] v0.0.2
  • Loading branch information
kaloudis authored Nov 22, 2022
2 parents 57df1fe + 575b103 commit 3bbde04
Show file tree
Hide file tree
Showing 5 changed files with 147 additions and 68 deletions.
181 changes: 124 additions & 57 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "echo",
"version": "0.0.1",
"version": "0.0.2",
"private": true,
"dependencies": {
"@babel/core": "7.16.0",
"@lightninglabs/lnc-web": "0.1.12-alpha",
"@lightninglabs/lnc-web": "0.2.0-alpha",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.3",
"@svgr/webpack": "6.5.0",
"@testing-library/jest-dom": "5.16.4",
Expand Down
Binary file removed public/wasm-client.wasm
Binary file not shown.
5 changes: 1 addition & 4 deletions src/hooks/useLNC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ import { useCallback } from 'react';
import LNC from '@lightninglabs/lnc-web';

// create a singleton instance of LNC that will live for the lifetime of the app
const lnc = new LNC({
wasmClientCode: 'wasm-client.wasm'
// wasmClientCode: 'https://storage.googleapis.com/lnc-apollo/wasm-client.wasm'
});
const lnc = new LNC({});

/**
* A hook that exposes a single LNC instance of LNC to all component that need it.
Expand Down
25 changes: 20 additions & 5 deletions src/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -874,11 +874,26 @@ const Home: React.FC = () => {
<p
key={index}
onClick={() => {
setFunding(
subscriptions[
showName
].value
);
// opt to use value recipients from episode if specified
if (
episode.value &&
episode
.value
.destinations
.length >
0
) {
setFunding(
episode.value
);
} else {
setFunding(
subscriptions[
showName
].value
);
}

setActivePodcast(
episode
);
Expand Down

0 comments on commit 3bbde04

Please sign in to comment.