January 2020
Intermediate to advanced
530 pages
11h 11m
English
The viewSingleLC method is used to view the details of a single LC. Unlike viewLC, it returns the details of the LC from the LC smart contract instead of the LC Master smart contract. Let's look at the code for the method:
The method takes the LC address as the input parameter. It will fetch the details of a single LC and allow the app to render these details on the screen. It does so by invoking the viewLCDetails function on the LC.
It first resets the LC state variable to blank, like so:
viewSingleLC = (LCAdd) => { let app = this; app.setState({ LC: [], });
Read now
Unlock full access